Skip to content

Feedback

Skeleton

A placeholder shown while content loads.

stableCSS onlyhydrateless/skeleton.css

A placeholder shown while content loads. data-hl-shape picks a text line, a circle, or a rectangle. Mark it aria-hidden="true" so screen readers skip it. The shimmer respects prefers-reduced-motion. CSS-only.

Playground

Live

Props

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

PropTypeDefaultDescription
shape'text' | 'circle' | 'rect''text'Shape of the placeholder; renders `data-hl-shape`.
widthstringNot setMaps to the `inline-size` inline style.
heightstringNot setMaps to the `block-size` inline style.

CSS variables

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

CSS variableUsed for
--hl-surface-2Base 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.