Skip to main content

Skeleton

A pulsing placeholder block used while content is loading. Renders a token-driven box that fades between two opacity levels.

Basic usage

<Skeleton w="60%" h={20} />
<Skeleton w="100%" h={16} />
<Skeleton w="80%" h={16} />

Shapes

<Skeleton w={48} h={48} rounded="r-full" />
<Skeleton w={80} h={80} rounded="r-3" bg="surfaceRaised" />

Props

PropTypeDefaultDescription
wDimensionValue'100%'Width, accepts numbers or percentage strings.
hDimensionValue16Height, accepts numbers or percentage strings.
roundedTRoundedToken'r-2'Corner radius token.
bgTVajraColors'surfaceRaised'Fill color.
testIDstringTest identifier.