Skip to content

Spinner

An indicator that shows something is loading.

Install

Bash
npx @madeui/cli add spinner

Usage

TSX
import { Spinner } from '@/components/ui/spinner';

Sizes

The spinner is 16px (icon.md) by default. Pass another icon.* size from @/lib/stylex-utils through style to resize it.

Composition

Spinner inherits currentColor, so it drops into any text-colored container — a Badge, a line of body text, anywhere.

Syncing

Fetching the latest results…

API reference

A lucide LoaderCircle with a spin animation, sized 16px and colored via currentColor — it inherits the surrounding text color (e.g. inside a Button). Accepts SVG props plus a style prop (StyleXStyles, merged last).

Was this page helpful?