Spinner
Indeterminate loading indicator with accessible status semantics.
npx @slipstream-ui/cli@latest add spinnerSizes & inline usage
Loading...Loading...Loading...
Generating response...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'default' | 'lg' | 'default' | Visual size of the spinner. |
| label | string | 'Loading...' | Screen-reader label announced via role=status. |
Accessibility
- Renders role="status" with an sr-only label so loading is announced.
- Set aria-hidden and an empty label when the spinner is purely decorative next to visible text.
Browser support
| Browser | Tested versions |
|---|---|
| Chrome | 111+ (Mar 2023) |
| Edge | 111+ (Mar 2023) |
| Firefox | 121+ (Dec 2023) |
| Safari | 17.2+ — macOS & iOS (Dec 2023) |
Slipstream components rely only on CSS custom properties, Flexbox/Grid, and ARIA — the everyday baseline of the last two years of evergreen releases. Anything newer is progressive enhancement: unsupported browsers keep full functionality with static behavior instead of animations.