Brand Guide

Components

Skeleton

A pulsing grey block that holds the place of content while it loads.

Default

Avatar and text

Card

In place of content

The blocks take the size of the lines they stand in for, so nothing moves when the content arrives.

Staff Software Engineer

QuantumLeap · London

Best practices

  • A skeleton has no size of its own. Give each block a height and width with className, and a radius where the default rounded-md is wrong, such as rounded-full for an avatar.
  • Build a component's skeleton as its own component, named *-skeleton.tsx and kept beside it: cv-pdf-preview-skeleton.tsx next to cv-pdf-preview.tsx.
  • Skeletons are for part of a page that is loading. A whole route that is loading shows the full-page loader instead.