Component/Classic
Twelve fading bars arranged in a radial pattern.
Speed1200ms
Opacity100%
import { Classic } from "loading-dev";
export function ClassicDemo() {
return <Classic size={48} />;
}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { Classic } from "loading-dev";
export default function ClassicSize() {
return (
<div className="flex items-center gap-6">
<Classic size={16} />
<Classic size={24} />
<Classic 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 { Classic } from "loading-dev";
export default function ClassicClassName() {
return <Classic 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 { Classic } from "loading-dev";
export default function ClassicColor() {
return <Classic color="#f97316" size={32} />;
}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { Classic } from "loading-dev";
export default function ClassicDuration() {
return <Classic duration={2400} size={32} />;
}State
Pauses or resumes the animation and exposes the state of the spinner.
import { Classic } from "loading-dev";
export default function ClassicPlayState() {
return <Classic playState="paused" size={32} />;
}