Spinner
Spinners provide a visual cue that an action is either processing, awaiting a course of change or a result.
Imports
import { Spinner } from "@renderlesskit/react-tailwind";
Usage
Spinner sizes
Sizes can be set using the size
prop. The default size is md
. The available
sizes are: xs
sm
md
lg
& em
Show stroke
To show the subtle stroke around the spinner we can use the stroke
which
accepts visible
or transparent
values
With Label
Spinner has a label
prop to provide an customized A11y label which is only
visible to the screen readers.
API Reference
Prop | Type | Default |
---|---|---|
size | union | md |
stroke | union | transparent |
label | string | Loading... |
Last updated on July 18, 2022