Spinner

An arc with a fading tail chasing itself around a faint track. Built from fills and a mask, so it stays crisp at any size. Still under reduced motion. Effects.

Open playground

About

Spinner is a React component in the Effects category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { Spinner } from "@ashutoshswamy/smoui" and set size, label, className.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { Spinner } from "@ashutoshswamy/smoui";

<Spinner label="Saving" />

Props 3

size

Diameter in px.

numberdefault 24
label

Announced status.

stringdefault "Loading"
className

Class on the spinner.

string