Skip to content

Spinner

<ax-spinner> is a lightweight CSS border spinner. Color inherits from currentColor, so it matches surrounding text or button content. Three sizes are available via the size input.

import { AxSpinnerComponent } from '@axisui-ng/feedback';
<ax-spinner size="md" ariaLabel="Loading results" />
<!-- inside a button, inherits the button's text color -->
<ax-button disabled><ax-spinner size="sm" /> Saving…</ax-button>
OptionValuesDefaultNotes
size'sm' | 'md' | 'lg''md'Diameter and border thickness (h-4 / h-6 / h-8).
<ax-spinner size="sm" />
<ax-spinner size="md" />
<ax-spinner size="lg" />
InputTypeDefaultNotes
size'sm' | 'md' | 'lg''md'Spinner diameter.
ariaLabelstring'Loading'Accessible name announced to screen readers.

Host uses role="status" with aria-label from ariaLabel. Under prefers-reduced-motion, the spin stops and the ring closes into a full static circle so it still reads as a busy indicator.

Interactive examples live in Storybook under Feedback / Spinner. Run pnpm storybook to explore them.