Component/Pulse
A ring rippling outward from a dot.
Speed1200ms
Opacity100%
import { Pulse } from "loading-dev"; export function PulseDemo() { return <Pulse size={48} />;}Size
Sets the spinner’s dimensions in pixels. The default value is 20
import { Pulse } from "loading-dev"; export function PulseSize() { return ( <div className="flex items-center gap-6"> <Pulse size={16} /> <Pulse size={24} /> <Pulse 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 { Pulse } from "loading-dev"; export function PulseClassName() { return <Pulse 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 { Pulse } from "loading-dev"; export function PulseColor() { return <Pulse color="#f97316" size={32} />;}Duration
Sets the speed in ms. Higher values are slower, smaller values are faster.
import { Pulse } from "loading-dev"; export function PulseDuration() { return <Pulse duration={2400} size={32} />;}State
Pauses or resumes the animation and exposes the state of the spinner.
import { Pulse } from "loading-dev"; export function PulsePlayState() { return <Pulse playState="paused" size={32} />;}