Spinner

A loading spinner with multiple sizes and variants for async states.

@spectrumui/spinner-demo

Installation

Login to view commandCreate a free account to access the install command

Usage

Size

@spectrumui/spinner-size

With text and custom style

@spectrumui/spinner-with-text
Loading...Loading with custom style

Toggle spinner

@spectrumui/spinner-toggle

Properties

PropTypeDefaultDescription
classNamestring-

Customize the style by adding tailwind.

size'small' | 'medium' | 'large'medium

Spinner size.

showbooleantrue

Visibility of spinner.

childrenReact.ReactNode-

Add custom component or text.