Usage
Use the Skeleton component as-is to display a placeholder.
Accent
Use the accent prop to change the variant of the Skeleton.
Examples
Something more complex
Example of a loading indicator for a task creation form.
API
Props
Slots
Theme
https://github.com/bitrix24/b24ui/tree/main/src/theme/skeleton.ts
export default {
slots: {
base: 'animate-pulse rounded-(--ui-border-radius-md) '
},
variants: {
accent: {
default: 'bg-(--ui-color-g-glass-grey-bg-1) edge-dark:bg-(--ui-color-g-glass-grey-bg-3)',
accent: 'bg-(--ui-color-g-glass-grey-bg-3) light:bg-(--ui-color-g-glass-grey-bg-2) edge-dark:bg-(--ui-color-g-glass-grey-bg-1)',
less: 'bg-(--ui-color-tech-push) dark:bg-(--ui-color-g-content-grey-3)'
}
},
defaultVariants: {
accent: 'default'
}
}