Installation
Usage
import { DotsRing } from "@/components/loading-ui/dots-ring";<DotsRing />Customization
DotsRing is more configurable than most of the simpler spinners in the set. Since the component exposes props for dot count, dot size, and ring radius, and uses --duration for pulse timing, it is a good fit when you want to tune the motion itself instead of only swapping utility classes around it.
Size
Use size-* utilities to control the overall footprint of the ring in compact and larger layouts.
Dot Count
Increase or decrease the number of dots to make the motion feel denser or more minimal.
Duration
Set --duration to adjust how quickly the pulse travels around the ring.
Dot Scale
Use dotScale to change the size of each dot relative to the overall ring.
Radius Scale
The radiusScale prop controls how far the dots sit from the center, which changes how tight or airy the ring feels.
Examples
These examples focus on smaller, more interface-oriented contexts where DotsRing feels precise and a little more designed than a plain spinner, without becoming overly expressive.
Badge
In compact status pills, DotsRing gives you a more distinctive loading marker while still reading clearly at small sizes.
Input Group
Inside input groups, it works well for inline checking and drafting states where the feedback should stay close to the field.
Alert
For visible but non-blocking system activity, DotsRing makes a good alert icon when you want something more refined than a single stroke spinner.
Tabs
Within tabbed views, it can signal that one panel is still refreshing while the rest of the workspace remains available.
Loading the latest metrics and repository activity.