Spinner
A spinner can be used to display the loading state when the part of the page is waiting for action results.
Import
Usage
EDITABLE EXAMPLE
Colors
EDITABLE EXAMPLE
Sizes
Use the size
prop to change the size of a spinner. You can set the value to xs
, sm
, md
, lg
, or xs
. The corresponding stroke width is listed below:
Size | Stroke Width |
---|---|
xs | 2px |
sm | 2px |
md | 4px |
lg | 4px |
xl | 4px |
EDITABLE EXAMPLE
StrokeWidth
EDITABLE EXAMPLE
Speed
EDITABLE EXAMPLE
Props
Name | Type | Default | Description |
---|---|---|---|
size | string | 'md' | The size of the spinner. Acceptable values: 'xl' , 'lg' , 'md' , 'sm' , 'xs' . |
color | string | 'blue:60' | The color of the spinner. |
strokeWidth | number | Set the stroke width for the spinner. | |
speed | float | 2 | Set the spinning speed for the spinner. |