Skip to content

Feedback

Skeleton

A placeholder shown while content loads.

stableNo JS requiredhydrateless/skeleton.css

A placeholder shown while content loads. Mark it aria-hidden="true" so screen readers skip it. It respects prefers-reduced-motion. CSS-only.

Playground

Live

Props

The framework bindings expose these props (and forward the rest to the root element).

PropTypeDefaultDescription
variant'rect' | 'text' | 'circle''rect'Shape of the placeholder.
widthstringCSS width.
heightstringCSS height.

CSS variables

Override these on any ancestor to theme the component. See the theme studio to preview changes live.

CSS variableUsed for
--hl-surfaceBase color of the placeholder.

Accessibility

  • Mark skeletons aria-hidden="true" so assistive tech skips placeholder noise.
  • The shimmer animation is disabled under prefers-reduced-motion.

Released under the MIT License.