Installation
npx sdaia-ui@latest add skeleton-avatars
Usage
import { SkeletonAvatars } from '@/components/ui/SkeletonAvatars';<SkeletonAvatars size="L" />Default
The default skeleton avatar placeholder in large size.
Loading demo: skeleton-avatars-default
Examples
Sizes
Avatar skeleton placeholders in L, M, S, and sm sizes.
Loading demo: skeleton-avatars-sizes
API Reference
Skeleton/Avatars Props
Props for the Skeleton/Avatars component.
Prop | Type | Default | Required |
|---|---|---|---|
size | 'sm' | 'S' | 'M' | 'L' | — | 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) | Round placeholders at fixed sizes: 24, 32, 48 or 64px. |
| Tablet (768–1279px) | Same layout as desktop, with the tablet token values. |
| Phone (under 768px) | Same sizes on phones; they do not scale with the screen. |