Skeleton

Use to show a placeholder while content is loading.

Installation

pnpm dlx cubix@latest add skeleton --base radix

Usage

Import
import { Skeleton } from "@/components/cubix/skeleton"
Example
<Skeleton className="h-4 w-[100px]" />

Card

Text

API Reference

Skeleton

PropTypeDefaultDescription
classNamestring-Additional Tailwind classes merged with the component styles (last one wins).
childrenReact.ReactNode-Optional content rendered inside the skeleton.