AccrueAdmin.Components.Spinner (accrue_admin v1.5.0)

Copy Markdown View Source

Accessible loading spinner display primitive for mounted admin pages.

Non-interactive; role="status" and aria-live="polite" announce the loading state to screen readers. aria-label provides the accessible name (defaults to "Loading…"). The visual animation is handled entirely by CSS via the .ax-spinner-track inner element — no SVG or inline animation needed in the component markup.

Summary

Functions

spinner(assigns)

Attributes

  • size (:string) - Defaults to "sm". Must be one of "sm", "md", or "lg".
  • label (:string) - Defaults to "Loading…".
  • class (:string) - Defaults to nil.