Skip to Content
DocsResourcesShowcase

Spinner

Used to provide a visual cue that an action is processing

SourceStorybookRecipe

import { Spinner } from '@saas-ui/react/spinner'
<Spinner />

Use the size prop to change the size of the spinner.

Use the colorPalette prop to change the color scheme of the spinner.

Use the color prop to pass a custom color to the spinner.

Use the --spinner-track-color variable to change the color of the spinner's track.

Use the animationDuration prop to change the speed of the spinner.

Use the borderWidth prop to change the thickness of the spinner.

Compose the spinner with a label to provide additional context.

Loading...

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

size 'md'
'xs' | 'sm' | 'md' | 'lg' | 'xl'

The size of the component

Previous

Slider

Next

Stat