Officina UI
Components

Skeleton

Placeholder shapes for loading states — blocks and multi-line text.

Skeleton reserves layout space while content loads.

Example

Preview
import { Skeleton } from '@officina/ui';

<Skeleton height={32} width="60%" />
<Skeleton variant="text" lines={3} />

API

PropTypeDefaultDescription
heightstring | number—Explicit height (px number or CSS length).
linesnumber1Number of text lines to render for the `text` variant.
variantenumrectShape of the placeholder.
widthstring | number—Explicit width (px number or CSS length).

On this page