Back to Components

Foundation

Skeleton

Pulsing placeholder block for loading states. Use one per discrete piece of pending content.

Examples

Avatar + lines

<div style="display:flex; gap:var(--uin-s-3); align-items:center;">
  <Skeleton variant="circle" />
  <div style="flex:1; display:flex; flex-direction:column; gap:6px;">
    <Skeleton variant="text" width="60%" />
    <Skeleton variant="text" width="40%" />
  </div>
</div>

Block

<Skeleton height="120px" />

Props

PropTypeDefaultDescription
variant'rect' | 'text' | 'circle''rect'Default shape; text is a pill, circle is 1:1.
widthstringExplicit width (any CSS length).
heightstringExplicit height (any CSS length).
classstringExtra classes; merged via cn().

Install

CLI

npx @a3tai/mittsu add skeleton