Spinner
A circular spinner that resolves into a tick or a cross when it finishes. Two variants - a sweeping arc for general use, and a dotted activity-indicator style for a lighter touch. Looking for the dot grid loader? It has its own page now.
Installation
npx stepwise-ui add spinner
Spinner
Three sizes - sm (16px), default (24px), and lg (32px) - or pass an exact pixel diameter.
Dots
Eight fading dots sweep around the center - the same activity-indicator language as iOS/macOS. Pass variant="dots".
Status
One component for the whole lifecycle. Pass a status and the ring closes into a filled disc, then the tick (or cross) draws on with a spring - the end state grows out of the spinner instead of replacing it.
Props
PropTypeDescription
status"loading" | "success" | "error"Drives the whole lifecycle. Default "loading".
size"sm" | "default" | "lg" | numberNamed preset or exact px diameter. Default "default".
variant"arc" | "dots"A sweeping stroke, or eight fading dots. Default "arc".