Skeleton
Display animated placeholder content while data is loading. Use Tailwind utility classes for sizing and shape.
Import
import { Skeleton } from '@sigx/daisyui';
Basic Skeleton
Loading preview...
Circle with Content
Loading preview...
Rectangle with Content
Loading preview...
Animated Text (skeleton-text)
Use the text prop to animate text color instead of background. Renders as a <span>.
Loading preview...
Card Placeholder
Loading preview...
List Placeholder
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | boolean | false | Applies skeleton-text class, animates text color instead of background. Renders as <span> instead of <div>. |
class | string | - | CSS utility classes for sizing (h-*, w-*), shape (rounded-full, rounded-lg), and other styling. |