Skeleton
Skeleton loading placeholders for text, images and custom shapes that keep the layout while content loads.
How to use it
Run npx @blossomui/react add skeleton, or copy src/components/UI/Skeleton/Skeleton.tsx into your React project and import it.
import { Skeleton, SkeletonText, SkeletonImage } from './components/ui/Skeleton'Props
SkeletonProps
| Prop | Type | Description |
|---|---|---|
| className | string | |
| style | CSSProperties | |
| rounded | 'full' | 'xl' | 'lg' | 'md' | 'none' | Corners of the block: `full` for lines and circles, `xl` for cards and images. |
SkeletonTextProps
| Prop | Type | Description |
|---|---|---|
| label | string | Text read by screen readers. |
| lines | number | Number of text lines under the title. |