Skeleton
A shimmering placeholder in the shape of the content that is loading.
When to use
Section titled “When to use”- Lists, cards, tables and chat history while they load. Use it for anything with a known layout.
- A wait of unknown length (a model thinking) uses
Loader.
What the consumer provides
Section titled “What the consumer provides”- A width and height per line that match the real text sizes: 14px lines for
body-sm, 18px forh4. Usecirclefor avatars andradius-fullfor badges. - A container with
aria-busy="true"and anaria-labelthat names what is loading.
Behaviour
Section titled “Behaviour”- The shimmer moves from
surface-200throughsurface-100. It makes one linear pass perduration-shimmer(1.8s). Under reduced motion it is plainsurface-200. - It appears after 300ms. The content then replaces it in place, and the layout does not jump.
Tokens
Section titled “Tokens”surface-200, surface-100, radius-xs, radius-full.
Mantine
Section titled “Mantine”<Skeleton height={14} width="70%" radius="xs" />, <Skeleton circle height={32} />.