Component/Wave
Five bars rising and falling in a wave.
Speed900ms
Opacity100%
import { Wave } from "loading-dev"; export function WaveDemo() { return <Wave size={48} />;}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { Wave } from "loading-dev"; export function WaveSize() { return ( <div className="flex items-center gap-6"> <Wave size={16} /> <Wave size={24} /> <Wave 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 { Wave } from "loading-dev"; export function WaveClassName() { return <Wave 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 { Wave } from "loading-dev"; export function WaveColor() { return <Wave color="#f97316" size={32} />;}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { Wave } from "loading-dev"; export function WaveDuration() { return <Wave duration={1800} size={32} />;}State
Pauses or resumes the animation and exposes the state of the spinner.
import { Wave } from "loading-dev"; export function WavePlayState() { return <Wave playState="paused" size={32} />;}Origin
Controls where the spinner grows from. center scales it from the middle, bottom keeps its base fixed so it rises from the baseline. The default origin is center.
import { Wave } from "loading-dev"; export function WaveOrigin() { return ( <div className="flex items-center gap-6"> <Wave origin="center" size={32} /> <Wave origin="bottom" size={32} /> </div> );}