Skeleton
A placeholder while content loads: a shimmering block, a circle or text lines; with loaded it shows its content.
API
For AI agents: this API as Markdown, or every component in llms-full.txt.
<ray-skeleton> · RaySkeleton
aria-busy="true" on the host while loading; the placeholder is aria-hidden.
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
width | width | string | Width (CSS length, a number is px). Default: 100% (a circle: 2.5rem). | |
height | height | string | Height of a block or of each line (CSS length, a number is px). Default: 1rem. | |
circle | circle reflects | boolean | A circle (avatar placeholder): its diameter is width, else height. | |
lines | lines reflects | number | Number of text lines (the last one is shorter). | |
radius | radius reflects | string | Corner radius: xs…xl, full or a CSS length. Default: sm. | |
animation | animation reflects | shimmer | pulse | none | shimmer | The loading effect (always none with reduced motion). |
loaded | loaded reflects | boolean | Shows the slotted content instead of the placeholder. |
| Slot | Description |
|---|---|
| (default) | The real content, shown with loaded. |
| Part | Description |
|---|---|
skeleton | The placeholder container. |
bone | Each block or line. |