@xsolla/xui-spinner
v0.99.0
Published
Accessible animated loading indicator.
Readme
@xsolla/xui-spinner
Accessible animated loading indicator.
Installation
yarn add @xsolla/xui-spinnerUsage
import { Spinner } from '@xsolla/xui-spinner';
<Spinner size="md" />Props
Spinner
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| size | "xl" \| "lg" \| "md" \| "sm" \| "xs" | "md" | Size of the spinner (xl: 96px, lg: 48px, md: 24px, sm: 16px, xs: 8px) |
| color | string | theme primary | Colour of the spinner; defaults to theme content colour |
| aria-label | string | "Loading" | Accessible label for screen readers |
| aria-describedby | string | — | ID of the element being loaded |
