Skip to content

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 ​

PropTypeDefaultDescription
variant'text' | 'rect' | 'circle''rect'Placeholder shape
linesnumber1Number of lines, for text
labelstring'Loading'Accessible name for the wait
asstring'div'Element to render
unstyledboolean—Drop built-in classes
classstring—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.