Installation
npx sdaia-ui@latest add skeleton
Usage
import { Skeleton } from '@/components/ui/Skeleton';<Skeleton size="text-large" />Examples
Default
The default skeleton block representing a large text line.
Loading demo: skeleton-default
Sizes
Text skeleton placeholder available in Small, Medium, Large, and X Large sizes.
Loading demo: skeleton-sizes
API Reference
SkeletonProps
Props for the Skeleton component.
Prop | Type | Default | Required |
|---|---|---|---|
size | 'text-sm' | 'text-md' | 'text-lg' | 'text-xl' | 'text-xl' | optional |
Responsive behavior
How this component behaves at the three system breakpoints. Spacing and type tokens switch automatically at 768px and 1280px.
| Screen | Behavior |
|---|---|
| Desktop (1280px and up) | Text placeholders are up to 336px wide (299px for text-sm) at fixed heights. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Placeholders shrink to the width of their container, so they fit a 360px screen. |