Skeleton
Use to show a placeholder while content loads.
Installation#
pnpm dlx shadcn@latest add @davinciui/skeletonUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
classNameAdditional CSS classes (size via h-* w-*). | string | — |
Accessibility#
A plain placeholder div with no role, aria-hidden, or live-region announcement, so screen readers may encounter an unlabeled empty element. Consumers should hide it or label it according to the content it represents.
Motion#
Only the Tailwind animate-pulse opacity cycle runs. There are no timing or easing props and no prefers-reduced-motion check, so the pulse continues when reduced motion is requested.
View source
Click the icon in the preview toolbar to browse source for each variant.
Keep in mind
This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

