Cajón Design System
Components

Skeleton

Content-shaped placeholders for data that is still loading.

Shape skeletons like the content they replace. A row with three real columns gets three bars at those column widths; it does not become one grey block.

<Skeleton width={180} label="Loading managed accounts" />
<Skeleton variant="circle" width={24} height={24} label="Loading account action" />

Props

PropTypeDefaultNotes
varianttext | rect | circletextPlaceholder shape
widthnumber | string100%Any CSS length; numbers become pixels
heightnumber | stringvariant defaultText 12px, circle 24px; provide it for rect
countnumber1Repeats the shape with an 8px gap
animatebooleantrueDisables shimmer for static output
labelstring—Accessible loading announcement

Skeleton is for loading, not absence or failure. Use EmptyState for an empty result and Alert for an error. Motion stops automatically when the user prefers reduced motion.

On this page