Component/Circular dots
Eight dots in a ring, the brightest hopping around.
Speed800ms
Opacity100%
import { CircularDots } from "loading-dev"; export function CircularDotsDemo() { return <CircularDots size={48} />;}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { CircularDots } from "loading-dev"; export function CircularDotsSize() { return ( <div className="flex items-center gap-6"> <CircularDots size={16} /> <CircularDots size={24} /> <CircularDots 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 { CircularDots } from "loading-dev"; export function CircularDotsClassName() { return <CircularDots 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 { CircularDots } from "loading-dev"; export function CircularDotsColor() { return <CircularDots color="#f97316" size={32} />;}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { CircularDots } from "loading-dev"; export function CircularDotsDuration() { return <CircularDots duration={1600} size={32} />;}State
Pauses or resumes the animation and exposes the state of the spinner.
import { CircularDots } from "loading-dev"; export function CircularDotsPlayState() { return <CircularDots playState="paused" size={32} />;}