Skeleton
Displays a placeholder preview of content before the data gets loaded to reduce load-time frustration.
Examples
import { Skeleton } from 'kalki-design'
<Skeleton></Skeleton>Installation
npx kalki-design add skeletonUsage
import { Skeleton } from 'kalki-design'
export default function Example() {
return <Skeleton />
}API Reference
| Name | Type | Default | Description |
|---|---|---|---|
Namevariant | Type'text' | 'circular' | 'rectangular' | 'rounded' | Default'text' | DescriptionThe visual style of the skeleton. |
Namewidth | Typestring | number | Default— | DescriptionOverrides the default width. |
Nameheight | Typestring | number | Default— | DescriptionOverrides the default height. |
Namecount | Typenumber | Default1 | DescriptionNumber of repeating skeleton lines to render. |
Nameanimate | Typeboolean | Defaulttrue | DescriptionWhether to show the pulse animation. |