Installation
Usage
import { QuarterRing } from "@/components/loading-ui/quarter-ring";<QuarterRing />Customization
QuarterRing only paints the top-right quadrant of a ring, so it stays visually lighter than a full stroke while still reading clearly at small sizes. It fits inline labels, dense toolbars, and “quick pass” states.
Size
Step through size-* utilities to match chips, table rows, and icon slots.
Color
The arc uses currentColor, so inheritance and semantic text colors apply without extra props.
Ring weight
Border thickness changes how punchy the arc feels against whitespace—especially next to monospace or tabular data.
Duration
Set --duration to slow the rotation for background tasks or speed it up for snappy micro-interactions.
Examples
These examples highlight small-footprint feedback: pills, empty states, and hover tips where a full ring would feel crowded.
Button
The quarter arc keeps button height comfortable while the label carries most of the meaning.
Badge
Badges stay balanced because the spinner silhouette matches the height of adjacent text.
Empty
For “lightweight preview” empty states, the arc suggests work in progress without dominating the illustration slot.
Sketching a compact preview
The quarter arc keeps the footprint small.
Tooltip
Pair the loader with short explanatory copy when the delay is user-visible but not worth a modal.