Skip to content

Spectrum Loader

A quiet spectrum of rounded bars rises and falls in a travelling rhythm.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import SpectrumLoader from "./SpectrumLoader";
export default function Example() {
return (
<SpectrumLoader
color={"#b39bcc"}
endColor={"#ddb18b"}
bars={17}
width={180}
height={75}
speed={1.3}
paused={false}
label={"Loading collection"}
/>
);
}

Using Spectrum Loader

Use label to name the operation being performed. bars, width, and height control the spectrum's proportions.

color and endColor define the colour progression. Use paused to hold the animation without changing the loader's layout.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#be9fcb"Colour at the start of the spectrum.
endColorstringNo"#dcac89"Colour at the end of the spectrum.
barsnumberNo13Bar count, clamped to 3–40.
widthnumber | stringNo160Width, capped to the parent.
heightnumber | stringNo64Height of the loading visual.
speednumberNo1.3Pulse duration in seconds.
pausedbooleanNofalsePause the current animation.
labelstringNo"Loading"Accessible status text.
classNamestringNo""Additional classes for the root element.
styleCSSPropertiesNoundefinedInline styles for caller-defined size, typography, and appearance.

Related components

Fine radial segments illuminate around a precise numeric readout.

Signal Bars

Feedback

Sculpted signal bars rise and fall in a staggered rhythmic wave.

Fluid Meter

Feedback

A circular gauge fills with two gently moving layers of liquid.

Orbit Loader

Feedback

Three tilted rings turn around a pin of light while content loads.