Skip to content

Component/Classic v2

Two lit ticks stepping around a ring of eight.

Speed800ms
Opacity100%
import { ClassicV2 } from "loading-dev";
 
export function ClassicV2Demo() {
  return <ClassicV2 size={48} />;
}

Size

Sets the spinner’s dimensions in pixels. The default value is 20

import { ClassicV2 } from "loading-dev";
 
export default function ClassicV2Size() {
  return (
    <div className="flex items-center gap-6">
      <ClassicV2 size={16} />
      <ClassicV2 size={24} />
      <ClassicV2 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 { ClassicV2 } from "loading-dev";
 
export default function ClassicV2ClassName() {
  return <ClassicV2 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 { ClassicV2 } from "loading-dev";
 
export default function ClassicV2Color() {
  return <ClassicV2 color="#f97316" size={32} />;
}

Duration

Sets the speed in ms. Higher values are slower, smaller values are faster.

import { ClassicV2 } from "loading-dev";
 
export default function ClassicV2Duration() {
  return <ClassicV2 duration={1600} size={32} />;
}

State

Pauses or resumes the animation and exposes the state of the spinner.

import { ClassicV2 } from "loading-dev";
 
export default function ClassicV2PlayState() {
  return <ClassicV2 playState="paused" size={32} />;
}