Used to provide a visual cue that an action is processing.
import { Spinner } from '@fintech-sandpit/ui/react';
import { Spinner } from '@fintech-sandpit/ui/vue';
| Name | Type | Default | Description |
|---|
variant | SpinnerVariant | ring | Spinner variant |
size | SpinnerSize | md | Spinner size |
colorScheme | ColorScheme | — | Spinner color scheme 1 |
boxSize | CssUnit | — | Spinner box size 2 |
thickness | CssUnit | — | Spinner thickness 3 |
| Name | Type | Default | Description |
|---|
variant | SpinnerVariant | ring | Spinner variant |
size | SpinnerSize | md | Spinner size |
color-scheme | ColorScheme | — | Spinner color scheme 1 |
box-size | CssUnit | — | Spinner box size 2 |
thickness | CssUnit | — | Spinner thickness 3 |
- If not provided, the spinner will inherit the text color of its parent element.
- If provided, the
size prop will be ignored.
- Makes sense only if
boxSize is provided.
export type SpinnerColorScheme = 'primary' | 'secondary' | 'success' | 'danger' | 'warning'
export type SpinnerSize = 'sm' | 'md' | 'lg'
export type SpinnerVariant = 'ring' | 'dual-ring'
export type CssUnit = `${number}${'px' | 'em' | 'rem' | 'vw' | 'vh' | 'vmin' | 'vmax' | '%'}`