Component/Arc
A single open stroke rotating in a circle.
Speed800ms
Opacity100%
import { Arc } from "loading-dev";
export function ArcDemo() {
return <Arc size={48} />;
}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { Arc } from "loading-dev";
export default function ArcSize() {
return (
<div className="flex items-center gap-6">
<Arc size={16} />
<Arc size={24} />
<Arc size={40} />
</div>
);
}Custom Classes
You can use a custom className in case you need to tweak the spinner in a specific way that the library doesn’t provide.
import { Arc } from "loading-dev";
export default function ArcClassName() {
return <Arc className="opacity-40" size={32} />;
}Color
The loader inherits currentColor from the parent by default. You can tint it in any way you want. It accepts any valid CSS color.
import { Arc } from "loading-dev";
export default function ArcColor() {
return <Arc color="#f97316" size={32} />;
}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { Arc } from "loading-dev";
export default function ArcDuration() {
return <Arc duration={2000} size={32} />;
}State
Pauses or resumes the animation and exposes the state of the spinner.
import { Arc } from "loading-dev";
export default function ArcPlayState() {
return <Arc playState="paused" size={32} />;
}Easing
Controls how the spinner rotates. linear moves at a constant speed, ease-in-out starts slowly, speeds up, then slows down.stacked combines the two so it changes speed without stopping. The default easing is linear.
import { Arc } from "loading-dev";
export default function ArcEasing() {
return (
<div className="flex items-center gap-6">
<Arc easing="linear" size={32} />
<Arc easing="ease-in-out" size={32} />
<Arc easing="stacked" size={32} />
</div>
);
}