Feedback
Spinner
Work in progress, in a known place: a button, a save state, a block.
Feedback
Work in progress, in a known place: a button, a save state, a block.
Change the props on the right. The spinner and its code follow.
import { Spinner } from 'omuk-ui/spinner';
<Spinner className="size-6" aria-label="Loading results" />On its own it is muted and 16 square. A size class makes it bigger, a text colour changes its colour. Its aria-label is what a screen reader hears.
Do not put a Spinner in a button by hand: give the Button isLoading. The label stays in the layout, hidden, and the spinner sits over it, so the button keeps its size.
The block keeps the height of what will come, and the spinner sits in its middle. When the shape of the content is known, a Skeleton is better.