Nusa UINusa UI

Use to show a placeholder while content is loading.

registry/examples/skeleton-demo.tsx
import { Skeleton } from "@/registry/ui/skeleton"

export default function SkeletonDemo() {

Installation

pnpmnpmyarnbun
pnpm dlx shadcn@latest add https://nusa-ui.vercel.app/r/skeleton.json

Usage

import { Skeleton } from "@/components/ui/skeleton"
<Skeleton className="h-[20px] w-[100px] rounded-full" />

Examples

Card

registry/examples/skeleton-card.tsx
import { Skeleton } from "@/registry/ui/skeleton"

export default function SkeletonCard() {

API Reference

Skeleton

The Skeleton component accepts all standard div props plus Tailwind classes for sizing and styling.

PropTypeDefaultDescription
classNamestring-Additional CSS classes