Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Spinner

Used to provide a visual cue that an action is processing

SourceStorybookRecipe

Usage

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

Examples

Sizes

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

Colors

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

Custom Color

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

Track Color

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

Custom Speed

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

Thickness

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

Label

Compose the spinner with a label to provide additional context.

Loading...

Props

Root

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

The color palette of the component

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

The size of the component

loading
boolean

Previous

Slider

Next

Stat