SkeletonBox
A SkeletonBox provides a placeholder for non-text, non-Avatar elements (e.g., hero images) that are still loading.
Page navigation navigation
React
ready
Figma
React examples
Default
Props
SkeletonBox
| Name | Default | Description |
|---|---|---|
delay | false | 'short' | 'long' | numberControls whether and how long to delay rendering the SkeletonBox. Set to 'short' to delay by 300ms, 'long' to delay by 1000ms, or provide a custom number of milliseconds. |
width | stringWidth of the skeleton box. Accepts any valid CSS | |
height | 1rem | stringHeight of the skeleton box. Accepts any valid CSS |
className | stringThe className of the skeleton box |