Installation
Usage
import { FadeArc } from "@/components/loading-ui/fade-arc";<FadeArc />Customization
FadeArc is an SVG made from two gradient-filled arc segments. The leading edge stays solid while the tail fades out, which gives you a softer motion read than a flat stroke spinner. Most tuning happens through size, color, timing, and spin direction.
Size
Use size-* on the SVG root for inline controls, badges, and larger empty-state placements.
Color
Both gradients use currentColor, so text and foreground utilities tint the arc and its fade in one step.
Duration
Set --duration when the loader should feel quick and responsive or slower and more backgrounded.
Direction
Reverse the spin when you want the motion to match nearby controls or other rotating elements.
Examples
These examples show where the softer gradient tail tends to fit best: sync work, panel refreshes, and assistant-style surfaces where the loader should feel present but not sharp.
Button
In buttons, FadeArc reads clearly at small sizes without the harsh contrast of a single solid stroke.
Badge
Compact status pills benefit from the tapered tail because the motion stays visible even at size-3.5.
Alert
For non-blocking background jobs, the fade keeps the alert calm while still showing active progress.
Input group
A textarea footer is a natural place to show generation or preview work tied to the prompt above.
Tabs
Use it inside tab content when one panel is refreshing but the broader workspace stays interactive.
New events will appear here once the stream catches up.
