Skip to content

Component/Linear dots

Three dots lighting up in turn from left to right.

Speed900ms
Opacity100%
import { LinearDots } from "loading-dev";
 
export function LinearDotsDemo() {
  return <LinearDots size={48} />;
}

Size

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

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

Duration

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

import { LinearDots } from "loading-dev";
 
export default function LinearDotsDuration() {
  return <LinearDots duration={1800} size={32} />;
}

State

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

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