Skeleton

Tailwind skeleton loader with a sunken plate and a soft sheen that sweeps every 1.6s, plus a SkeletonCard preset with title, text lines and a media block.

src/registry/ui/skeleton.tsx/r/skeleton.json

Block

Installation#

bash
npx shadcn@latest add @minidev/skeleton

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/skeleton.json

Usage#

tsx
import { Skeleton } from "@/components/ui/skeleton"

export function Example() {
  return (
    <Skeleton className="h-4 w-40" />
  )
}

API reference#

Skeleton props
PropTypeDefault
classNamestring-

Examples#

All alerts, toasts and empty states

Learn more