Skeleton

Placeholder loading shapes with shimmer, pulse, or static animations.

Import

import { Skeleton } from "@igorao79/uivix";

Playground

Card Skeleton

Usage

{/* Card skeleton */}
<div className="flex items-center gap-3">
  <Skeleton variant="circle" width={48} height={48} />
  <div className="space-y-2">
    <Skeleton variant="text" width="40%" />
    <Skeleton variant="text" width="25%" />
  </div>
</div>
<Skeleton variant="rectangle" width="100%" height={120} />

Props

PropTypeDefaultDescription
variant"rectangle" | "circle" | "text""rectangle"Shape of the skeleton
animation"pulse" | "shimmer" | "none""shimmer"Animation style
widthstring | number"100%" (circle: 40)Width of the skeleton
heightstring | number20 (circle: 40, text: 16)Height of the skeleton
classNamestring-Additional CSS classes