Spinner
Indeterminate loading indicator.
362 Bgzipped
At a glance
- Wraps RN
<ActivityIndicator>on native; CSS animation on web. - Pair with a visible
labelwhenever the spinner is the only signal that work is happening — short waits get away with the icon, long ones don't.
Preview
Native preview
size
Diameter. Token sizes map to fixed pixel values; pass a number to escape the scale.
| Value | Diameter |
|---|---|
sm | 16 px |
md (default) | 24 px |
lg | 32 px |
<number> | Exact px |
label
Visible (or screen-reader-only via i18n default) accessibility label. Defaults to "Loading" — override when the context demands a more specific phrase ("Saving…", "Submitting form…") so screen readers say the right thing.
color
Override the default theme color. Forwarded to the underlying
ActivityIndicator (native) or CSS border-color (web). Pass a CSS
color string.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | — |
label | string | Loading | Visible (a11y) label. Defaults to the i18n "common.loading" default ("Loading"). |
size | SpinnerSize | md | — |