Skeleton
A placeholder shape while content loads. Pulses in Konoha and Kiri, hatched and still in Iwa, still everywhere under reduced motion.
Installation
Or with the shadcn CLI, from the registry:
Usage
Villages
Its fill and motion are tokens: --skeleton-fill (Iwa hatches it) and --skeleton-motion (Iwa keeps it still).
Accessibility
- A
<div>with no role: the region that is loading should carryaria-busy="true", and the skeletons can be hidden witharia-hidden. - The pulse stops under
prefers-reduced-motion.
API reference
The props of <div>, plus className: size and shape it with utilities.