ShadcnUI.Components.Foundation.Skeleton (shadcn_ui v1.0.0)

Copy Markdown View Source

Decorative loading-shape presentation with a calm reduced-motion fallback.

Applications own loading detection, announcements, replacement timing, errors, and content layout. Label a meaningful loading region outside the Skeleton component.

Summary

Functions

Renders one assistive-technology-hidden placeholder.

Functions

skeleton(assigns)

Renders one assistive-technology-hidden placeholder.

shape and size are visual layout guidance only. The component never announces loading, labels a region, or controls when real content replaces the placeholder.

Attributes

  • shape (:atom) - Defaults to :rectangle. Must be one of :rectangle, :circle, or :text.
  • size (:atom) - Defaults to :default. Must be one of :small, :default, or :large.
  • pulse (:boolean) - Defaults to true.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.