Spinner
Shows that something loads.
Sizes and color
Use md (the default) in most places and sm in dense UI, such as next to small text. The spinner takes the current text color.
sm · dense UI
Loading insights
md · defaultLoading insights
lg · 20pxLoading insights
Text colorLoading replaysLoading replays
Usage
These are defaults, not laws. Break one when you have a good reason, or when it makes the design more cohesive or more interesting.
- Set
labelto say what is loading. - For a button action, use the button's
loadingprop. For content that loads, use Skeleton.
API
Props that the library adds. Every part also takes all the Base UI props.
Spinner
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | The spinner diameter. |
| label | string | 'Loading' | The accessible status label. |
| className | string | – | Classes for the spinner. |





