Size the Skeleton as the content that comes, so nothing moves when it arrives. The bars are hidden from screen readers, so put aria-busy on the region that loads.
comment-skeleton.tsx
Skeleton
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| pulse | boolean | true | |
| rounded | "default""full" | "default" | |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
SkeletonText
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| text | "meta""prose""title""ui" | "ui" | |
| lines | number | readonly number[] | 3 | How many lines (default 3), or the width of each line as a fraction of the box (0 to 1): the measured lines of a known layout, so the bars end where the text will end. |
| pulse | boolean | true | Pulse the bars (default true); false holds them still. |
| line | string | — | Classes of each bar (a corner, rounded="full" for word pills). |
| rounded | "default""full" | "default" | The corner of each bar. Default default. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |



