Spinner
Show active processes. Simple, clear feedback. Prevent duplicate actions.
Loading
Loading invoices
Pulling the last 12 months from Stripe.
Installation
Copy and paste the following code into your project.
Update the import paths to match your project structure.
Anatomy
Examples
Default
Loading
Loading invoices
Pulling the last 12 months from Stripe.
Sizes
You can change the size of the spinner using the
size prop.Loading
Table cell
Loading
Card body
Loading
Side panel
Loading
Full page
Variants
You can change the color of the spinner using the
variant prop.Loading
Building web-app
step 3 of 5
Loading
Queued: docs site
waiting for a runner
Loading
Promoting to production
almost done
Loading
Syncing environment variables
18 of 24
Loading
Retrying image upload
attempt 2 of 3
Loading
Rolling back api-gateway
triggered by CI
API Reference
Spinner
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'xl' | 'md' | The size of the spinner |
variant | 'default' | 'primary' | 'muted' | 'success' | 'destructive' | 'warning' | 'info' | 'default' | Visual style |
label | string | 'Loading' | Accessible name announced by screen readers |
className | string | - | Additional CSS classes |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.