Spinner

Continuous animate-spin on the Loader2 glyph. Sized through class utilities; inherits currentColor so it tints with the surrounding text.

Usage

Inline with a button

Sizes

Use Tailwind size utilities. The default is size-4; scale up as needed.

Colors

Spinner inherits currentColor — apply any text color token to tint it.

In Badge

Compose a processing pill by placing a Spinner inside a Badge.

Processing Syncing

In Input Group

Place a Spinner in an InputGroup.Addon to signal a loading state on the field.

In Empty state

Drop a Spinner into an Empty placeholder while content is loading.

Loading results
Hang tight — fetching your data.

In Item

Use a Spinner as Item leading media to signal that a row is processing.

Uploading report.pdf

34% — please wait

API reference

Inherits native SVGAttributes via spread. Renders as the Remix `loader-4-line` icon with animate-spin.

PropTypeDescription
stringSize and color overrides. Default size is size-4 and stroke follows currentColor.
stringExposed to assistive tech. Override when the spinner means something specific.
stringARIA role. Changes the announced semantics for screen readers.