Skip to content

Skeleton

Pro

A placeholder in the shape of loading content, pure CSS with pulse or shimmer. Not an M3 component (@windmorph/react-pro).

import { Skeleton, SkeletonGroup } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Purpose

A skeleton holds the place of content that is loading, in the shape of that content, so the page keeps its layout and people can see what is coming. It is not an M3 component: it comes from @windmorph/react-pro and is built to M3's colour roles, shape scale, type scale and motion tokens.

Use a skeleton when the layout of the coming content is known (cards, list rows, text). Use the M3 Loading indicator for a short wait whose shape isn't known or a whole page loading, and a Progress indicator when progress can be measured.

A skeleton is pure CSS, so it animates in server components and in streamed Suspense fallbacks before the page hydrates. A SkeletonGroup's label is a live region that goes into the page first and takes its text a moment later, so it's announced even when the group appears after the page has loaded.

When not to use

When the shape of the coming content is unknown, or a whole page is loading, use the Loading indicator.

See also

  • Loading indicator: An Expressive shape that morphs while it rotates; replaces the spinning circle.
  • Progress indicators: Linear and circular indicators, determinate or indeterminate, flat or wavy.