TripleDotSpinner rotates three compact markers around their shared center. It
has more motion than a static dot row, but it stays small enough for buttons,
badges, table rows, and local refresh states.
Installation
Usage
import { TripleDotSpinner } from "@/components/loading-ui/triple-dot-spinner";<span className="grid size-5 place-items-center">
<TripleDotSpinner className="size-1.5" />
</span>Customization
The size-* utility controls the dot size, not the whole visual footprint. The
three-dot shape rotates outside that box, so reserve a small fixed slot in
buttons, badges, and table cells.
Size
Wrap the spinner in a stable slot, then scale the dots with size-*.
Color
All three markers use currentColor, so the spinner can inherit text color or
use a direct foreground utility.
Duration
Set --duration to make the rotation snappier or calmer.
Examples
These examples favor dense surfaces: save buttons, status chips, and compact alerts where the spinner needs to stay small.
Button
A size-5 icon slot keeps the rotating dots centered without shifting the
button label.
Badge
Use the smallest dot size inside chips so the rotating shape does not crowd the label.
Alert
Alerts give compact refresh feedback a little more context without blocking the page.