Skeleton

Animated loading placeholder that mirrors the shape of pending content

Category: display · WCAG 2.2-AA · loading, placeholder, shimmer

Variants

Props

PropTypeDefaultDescription
variant'text' | 'circle' | 'rect'textSelects the visual style variant.
widthstringCSS length applied as an inline custom property
heightstringCSS length applied as an inline custom property
linesnumber1Number of bars for the text variant; the last bar renders shorter

Design tokens

When to use

When not to use

How to build an accessible Skeleton in React →

Examples

Text

<Skeleton lines={3} />

Avatar

<Skeleton variant="circle" width="3rem" height="3rem" />

Image

<Skeleton variant="rect" height="12rem" />

Related components

← Back to docs