Spinner
An accessible indeterminate progress indicator for operations without a known completion percentage.
Default
An accessible indeterminate loading status.
Loading account balances
tsx
<Spinner label="Loading account balances" />Installation
tsx
import { Spinner } from "madagent";Sizes
Three sizes cover compact controls, standard surfaces, and prominent loading states.
Loading small itemLoading itemLoading large item
tsx
<Spinner size="sm" />
<Spinner size="md" />
<Spinner size="lg" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | "sm""md""lg" | "md" | Spinner diameter |
label | string | "Loading" | Visually hidden accessible status label |
RTL Support
Components automatically adapt to right-to-left languages using CSS logical properties.
Preview
جار تحميل الأرصدةجار تحميل الأرصدة…
Usage
tsx
<div style={{ display: "flex", gap: "0.5rem" }}>
<Spinner label="جار تحميل الأرصدة" />
جار تحميل الأرصدة…
</div>