Spinner
import { Spinner } from 'yarcl';<Spinner size="lg" color="primary" /><Button loading={saving}>Save</Button>A spinner is sized like an icon, so inside a control it matches the control’s size. Without color it uses the current text color. It’s announced as “Loading”; change that with label.
| Prop | Type | Default | Description |
|---|---|---|---|
color | Colorconfig | Semantic color, from the colors config. Uses the current text color when omitted. | |
label | string | 'Loading' | Accessible label announced to screen readers. |
size | Sizeconfig | Diameter from the size's iconSize, from the sizes config. Inherits the surrounding control's size when omitted. |