GitHub

Spinner

Loading spinner with size variants and htmx indicator support.

<rhx-spinner>

Examples

Sizes

htmx Indicator

(Spinner with class="htmx-indicator" for use with hx-indicator)

Properties

Property Type Default Description
rhx-size string medium Spinner size: small, medium, large, or any CSS value
rhx-label string Loading Accessible label for the spinner

Accessibility

  • Renders with role="status" so screen readers announce the loading state.
  • The rhx-label property maps to aria-label (defaults to "Loading").
  • Animation respects prefers-reduced-motion media query.