nalarx-ui
Components

Skeleton

Shimmering placeholder shapes sized like the content they stand in for.

bunx shadcn@latest add @nalarx/skeleton

Usage

Match the final size, so nothing shifts when the data arrives. Never show a bare "Loading…" text instead.

<Skeleton width={120} height={14} />
<SkeletonText lines={3} />

Card and row

Props

ExportProps
Skeletonwidth ("100%"), height (14), radius (6), ariaLabel, className. Numbers are px.
SkeletonTextlines (3), lineHeight (12), gap (8), lastLineWidth ("60%")
SkeletonCardtitleWidth, subtitleWidth, bodyLines, showAction
SkeletonRowheight (48), showAvatar

Accessibility

Each Skeleton is a status with aria-busy and the loading string as its name. Inside a control that already names the wait, hide them with aria-hidden. The shimmer stops under reduced motion.

Replaces

Skeleton.tsx in both apps.

On this page