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.

Keyboard

None. Nothing in a skeleton is focusable, so it has no keys.

Screen reader

Role
Each Skeleton is hidden from assistive tech (aria-hidden). SkeletonGroup marks its skeletons busy (aria-busy="true"); its status label sits just before them, outside the busy element, so screen readers announce it.
Accessible name
The group's label ("Loading businesses"), read once as status text instead of announcing every placeholder.
States announced
aria-busy on the group, for as long as it is on the page.
  • With as="ul", the label sits just before the list, outside it; with as="li", the group is one list item holding the label and a busy div, so the list stays valid.
  • The label's status region goes into the page a moment (100ms) before its text, so it is announced even when the group appears after the page has loaded.

Focus

None. Skeletons never take focus, and a SkeletonGroup adds no focus stops.

Touch target

None. A skeleton has nothing to press; it stands in for content until it loads.

Motion

Both animations, the pulse and the shimmer, stop under reduced motion, leaving a still fill: a still placeholder still reads as loading. animation="none" stops them for everyone.

What you need to do

  • Wrap skeletons in a SkeletonGroup with a label that says what is loading; a lone Skeleton is silent to screen readers.
  • Replace the whole group with the content when it arrives, so aria-busy goes with it, and don't move focus into the placeholders.
  • In forced-colours mode each placeholder keeps an outline, since backgrounds are removed; keep classNames overrides from removing it.