Spinner

An indicator that can be used to show a loading state.

There is no dedicated Spinner component in Basecoat.

Processing payment...

$100.00

Usage

Spinners are pure HTML using the loader-circle Lucide icon with the animate-spin Tailwind utility. Add role="status" and aria-label="Loading" for accessibility.

Browse the examples below and copy the pattern that fits your needs.

Examples

Size

Use the size-* utility class to change the size of the spinner.

Color

Use the text-* utility class to change the color of the spinner.

Button

Add a spinner to a button to indicate a loading state.

Badge

Syncing Updating Processing

Input Group

Input groups can have spinners positioned inside them.

Validating...

Empty

Use a spinner in empty states to indicate a loading or processing state.

Processing your request

Please wait while we process your request. Do not refresh the page.

Item

Downloading...

129 MB / 1000 MB