Feedback
ISkeleton
A placeholder in the shape of the content that is coming. Match it to what will land, or the layout jumps when the real thing arrives.
Variants
text sizes itself to the current line height. rect is a block, and circle an avatar or icon.
rect and circle take their size from class.
Composing a shape
Skeletons are plain boxes; build a shape out of several.
Announcing the wait
Every skeleton carries label as its accessible name, defaulting to Loading. Name the thing being waited for when several are on screen at once.
vue
<ISkeleton :lines="3" label="Loading invoices" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'text' | 'rect' | 'circle' | 'rect' | Placeholder shape |
lines | number | 1 | Number of lines, for text |
label | string | 'Loading' | Accessible name for the wait |
as | string | 'div' | Element to render |
unstyled | boolean | — | Drop built-in classes |
class | string | — | Merged with the built-in classes |
ITable renders its own skeleton rows while loading its first page, then switches to a refresh bar once rows are on screen.