Skeleton
ProA 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
Skeletonis hidden from assistive tech (aria-hidden).SkeletonGroupmarks its skeletons busy (aria-busy="true"); itsstatuslabel 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-busyon the group, for as long as it is on the page.
- With
as="ul", the label sits just before the list, outside it; withas="li", the group is one list item holding the label and a busydiv, so the list stays valid. - The label's
statusregion 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
SkeletonGroupwith alabelthat says what is loading; a loneSkeletonis silent to screen readers. - Replace the whole group with the content when it arrives, so
aria-busygoes with it, and don't move focus into the placeholders. - In forced-colours mode each placeholder keeps an outline, since backgrounds are removed; keep
classNamesoverrides from removing it.