Component/Cascade
Three nested arcs fanning into a spiral and snapping back in line.
Speed1500ms
Opacity100%
import { Cascade } from "loading-dev"; export function CascadeDemo() { return <Cascade size={48} />;}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { Cascade } from "loading-dev"; export function CascadeSize() { return ( <div className="flex items-center gap-6"> <Cascade size={16} /> <Cascade size={24} /> <Cascade 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 { Cascade } from "loading-dev"; export function CascadeClassName() { return <Cascade 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 { Cascade } from "loading-dev"; export function CascadeColor() { return <Cascade color="#f97316" size={32} />;}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { Cascade } from "loading-dev"; export function CascadeDuration() { return <Cascade duration={3000} size={32} />;}State
Pauses or resumes the animation and exposes the state of the spinner.
import { Cascade } from "loading-dev"; export function CascadePlayState() { return <Cascade playState="paused" size={32} />;}Cap
Controls how the ends of the stroke are drawn. round finishes them with a half circle, flat cuts them square. The default cap is round.
import { Cascade } from "loading-dev"; export function CascadeCap() { return ( <div className="flex items-center gap-6"> <Cascade cap="round" size={32} /> <Cascade cap="flat" size={32} /> </div> );}