Progress
Show how much of a known task is complete.
Reserve space while content is still loading.
npx shadcn@latest add @silicon-ui/skeletonnpx shadcn@latest add @silicon-ui/skeletonInstall the dependencies.
npm install motionCopy these files into your project. Shared files are skipped if you already have them.
components/silicon-ui/skeleton/skeleton.tsxcomponents/silicon-ui/skeleton/skeleton.module.cssInstall the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation
| Prop | Type | Default |
|---|---|---|
label | string | "Loading content" |
lines | number | 3 |
avatar | boolean | false |
className | string | — |
childrenContent to reveal once loading finishes. With children, the placeholder crossfades into them. | ReactNode | — |
loadingKeeps the placeholder visible while true. Only used together with children. | boolean | true |