Spinner
Spinner express an unspecified wait time or display the length of a process.
Ads by Tryg Careers
Installation
Usage
Note: Spinner adds
Loadingasaria-labelby default. This is required for accessibility. You can change it by passing alabeloraria-labelprop.
Sizes
Colors
The spinner will be colored by 'currentColor' of its parent element. If you want to set the color of the spinner specifically, you can set the text color of the parent element or directly for the Spinner.
API
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
size | size | We recommend controlling the size of the Spinner with the parent container. Size option included for the sake of flexibility. | "large" | "medium" | "small" | "xlarge" | "xsmall" | undefined |
strokeWidth | stroke-width | You shouldn't change this from it's default but we've included the option for the sake of flexibility | number | 7 |
Dependencies
Used by
Graph
graph TD;
anchor-button --> anchor-spinner
style anchor-spinner fill:#f9f,stroke:#333,stroke-width:4px