Anex UI logoAnex UI
npm install anexui
Documentation

Documentation

Spinner

An animated loading indicator with role="status" and a visually-hidden accessible label.

Preview

LoadingLoadingLoading

Usage

import { Spinner } from "anexui";

<Spinner />
Copy code

Sizes

<Spinner size="sm" />
<Spinner size="md" />
<Spinner size="lg" />
Copy code

Custom label

<Spinner label="Loading dashboard…" />
Copy code

Inside a button

<Button disabled>
  <Spinner size="sm" label="" />
  Saving…
</Button>
Copy code

Props

| Prop | Type | Default | Description | |---|---|---|---| | size | "sm" \| "md" \| "lg" | "md" | Size of the spinner SVG | | label | string | "Loading…" | Accessible label announced by screen readers (visually hidden) |

Accessibility