Pulse

An indeterminate wait indicator softer than the spinner: circles that breathe or ripple, announced as a status.

Source on GitHub

Code

API

For AI agents: this API as Markdown, or every component in llms-full.txt.

<ray-pulse> · RayPulse

Four presets (variant), each a bundle of count, shape, fade and direction, which override it one by one. The rest is tuned with custom properties on the element: --ray-pulse-cycle (one cycle, default 1.6s; doubled with reduced motion), --ray-pulse-floor (opacity of the largest of concentric filled circles, 0 to 1, default 0.2), --ray-pulse-scale (where a cycle starts, 1 = full size; default per variant) and --ray-pulse-stagger (how much of the cycle separates the phases of the circles, 0 together to 1 spread evenly; default per variant).

PropertyAttributeTypeDefaultDescription
variantvariant reflectscluster | breathe | ripple | dotsclusterThe figure: cluster (three concentric circles breathing out of phase), breathe (one dot over a halo), ripple (rings expanding from a dot) or dots (three in a row, in sequence).
countcount reflectsnumberNumber of circles, 1 to 5 (more are clamped). Default: the variant's.
shapeshape reflectsfilled | ringFilled discs (concentric ones fade with size, see --ray-pulse-floor) or outlined rings. Default: the variant's.
fadefade reflectsout | noneWhether a cycle ends transparent; the bare attribute means out. Default: the variant's (ripple and dots fade).
directiondirection reflectsalternate | normalalternate goes there and back; normal goes one way and restarts (with fade: the ripple). Default: the variant's.
colorcolor reflectsstringA palette color or any CSS color. Default: the primary color.
sizesize reflectsxs | sm | md | lg | xlmdHeight of the figure (the dots variant is wider).
labellabelstringLoading (text pulse.label)Text read by screen readers.
PartDescription
pulseThe box holding the circles.
dotEach circle (the static center of ripple is also part core).

Texts

What it writes itself, in English; setStrings() translates them (Getting started: Languages).

KeyEnglish
pulse.labelLoading