A loading placeholder that mimics the shape of content. When loading is false, it renders its children instead.
import Skeleton from "@radui/ui/Skeleton"- Draws a placeholder in the shape of the content, with width, height and radius props
- When loading is false it renders its children instead, so the layout does not jump
- Pulses by default and stops under prefers-reduced-motion
Import all parts of the component and piece them together.
A loading placeholder. Renders children when loading is false.
| Prop | Type | Default |
|---|---|---|
loading* | boolean | true |
width* | string | — |
height* | string | — |
radius | string | "" |
customRootClass | string | "" |