Installation
Usage
import { Spiral } from "@/components/loading-ui/spiral";<Spiral />Customization
Spiral is a more characterful loader that builds its motion from dots moving around a circular path. The most meaningful changes come from dot density, how wide the spiral sits, and the overall size and color treatment.
Size
Scale the component with size-* utilities depending on whether it appears inline or anchors a larger loading state.
Color
Because each dot uses currentColor, the component can inherit the surrounding tone or be styled directly with any text color utility.
Dot Count
The dots prop changes the density of the motion path, from more minimal to more continuous.
Radius
Use the radius prop to tighten or widen the spiral without changing the outer size of the component.
Examples
These examples use Spiral in places where its motion can add a bit more personality to the waiting state instead of disappearing into the background.
Button
In primary actions, Spiral gives the pending state a little more energy than a plain inline spinner.
Collapsible
Inside a collapsible processing panel, it helps anchor the summary while deeper details remain available underneath.
Empty
For featured waiting states, Spiral has enough presence to hold the layout without needing extra decoration.
Organizing your workspace
Repositories, files, and recent changes are still being mapped into a fresh project view.
Tabs
In tabbed workspaces, it works well when one panel is still loading but the rest of the UI should stay usable.
Pulling together the latest edits, risks, and recommendations.