Skip to content
Zuno UI
Explore components
EXPLORE
Actions
Forms
Layout
Navigation
Data display
Feedback
Overlays
RESOURCES
Components/Skeleton

Skeleton

Reserves space with reduced motion; no endless fake loading.

Installation

Run it from the root of a project already set up with zunoui init.

npx zunoui@latest add skeleton

Dependencies

What add skeleton installs alongside the component. The CLI skips any you already have in a compatible version.

ZUNO registry

  • @zuno/utils

Examples

1 examples · 1 component
skeleton

Reserved space

Keeps the layout stable while the content loads.

API reference

Forwards props and ref to the container element; it only adds composition utilities.

PropTypeDefault
className

Sets the size and shape of the block.

string—

States

The states that apply to this component and their visual treatment.

StateTreatment
LoadingReserves the content's space with a gentle pulse.
Reduced motionThe pulse stops with prefers-reduced-motion.
Semanticsaria-hidden: communicate loading with adjacent text or role="status".

Accessibility

It is aria-hidden: it announces no content. Communicate the loading state with adjacent text or role="status".

Respects prefers-reduced-motion: the animation stops when reduced motion is requested.