Skeleton#

Display animated placeholder content while data is loading. Use Tailwind utility classes for sizing and shape.

Import#

TSX
import { Skeleton } from '@sigx/daisyui';

Basic Skeleton#

TSX
Loading preview...

Circle with Content#

TSX
Loading preview...

Rectangle with Content#

TSX
Loading preview...

Animated Text (skeleton-text)#

Use the text prop to animate text color instead of background. Renders as a <span>.

TSX
Loading preview...

Card Placeholder#

TSX
Loading preview...

List Placeholder#

TSX
Loading preview...

Props#

PropTypeDefaultDescription
textbooleanfalseApplies skeleton-text class, animates text color instead of background. Renders as <span> instead of <div>.
classstring-CSS utility classes for sizing (h-*, w-*), shape (rounded-full, rounded-lg), and other styling.