Skeleton
Use to show a placeholder while content is loading.
Installation
pnpm dlx cubix@latest add skeleton --base radixUsage
import { Skeleton } from "@/components/cubix/skeleton"<Skeleton className="h-4 w-[100px]" />Card
Text
API Reference
Skeleton
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | - | Additional Tailwind classes merged with the component styles (last one wins). |
| children | React.ReactNode | - | Optional content rendered inside the skeleton. |