Skip to main content
  1. Docs
  2. Components
  3. Feedback

Skeleton

A placeholder shaped like the content that's loading, so the page doesn't move when it lands.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<span aria-hidden="true">Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • A card, a list or a profile, the first time it loads.
  • Table rows: Table draws its own.
Not for

02

Anatomy

  1. 1skeleton<span>A circle, an Avatar's size.
  2. 2skeleton<span>A line of text, sized by you.
  3. 3skeleton-lines<span>A paragraph: lines, the last one shorter.

03

Do and don't

The shape of what's coming
DoRows like the list's: it lands without a jump.
Don'tOne grey block for a list of rows.
One way to wait
DoSkeletons alone, with the wait said once to screen readers.
Don'tSkeletons and a spinner: two ways of saying the same.

04

Content

  • No words: it's hidden from screen readers.
  • Say the wait once, in a status: "Loading Priya Sharma's profile".
  • Size lines like the text they stand for: a name shorter than a paragraph.
Next — SkeletonAPI