Shadix.Components.Skeleton (shadix v0.0.1)

Copy Markdown View Source

Skeleton component, translated from the shadcn/ui skeleton component.

Renders a <div> with data-slot="skeleton" used as a loading placeholder.

The pulse animation respects prefers-reduced-motion: under reduced motion the animate-pulse loop is suppressed via motion-reduce:animate-none.

Summary

Functions

skeleton(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block