Skeleton

Default and declarative skeletons with shapes, nested rows, and content reveal.

Skeleton

Default

Render a title and three text placeholders without configuration. Skeleton fills the available width.

Declarative rows

Each entry in rows is a row. An array is the short form; strings create default shapes. Objects set width, height, size, and flex. A group nests rows for an avatar beside multiple text lines. Use repeat to reuse a whole layout for lists. See , , for the configuration types.

Loading content

Control loading to reveal the default slot. The placeholder slot can replace the declared layout. Match the placeholder dimensions to the final content for a stable reveal; Skeleton does not fetch data.

Animation

Choose shimmer, pulse, or no animation. Motion is disabled automatically when the system requests reduced motion. Theme tokens adapt the placeholders to light and dark modes.

API

PROPS

Property
Type
Values
Description
default
Example
More
loading
boolean
true | false
Show placeholders; false reveals content.
true
rows
[]
—
Row declarations; omission uses the default text layout.
—
repeat
number
—
Repeat the entire layout; a positive integer.
1
gap
—
Default spacing between rows and items; numbers are pixels and strings are CSS lengths.
16
animation
shimmer | pulse | none
Placeholder animation.
shimmer
label
string
—
Loading status for assistive technology; defaults to localized copy.
—

SLOTS

Slot
Description
default
Example
More
default
Content shown after loading.
—
placeholder
Custom placeholders replacing the rows layout.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied