Pulse
An indeterminate wait indicator softer than the spinner: circles that breathe or ripple, announced as a status.
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).
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
variant | variant reflects | cluster | breathe | ripple | dots | cluster | The 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). |
count | count reflects | number | Number of circles, 1 to 5 (more are clamped). Default: the variant's. | |
shape | shape reflects | filled | ring | Filled discs (concentric ones fade with size, see --ray-pulse-floor) or outlined rings. Default: the variant's. | |
fade | fade reflects | out | none | Whether a cycle ends transparent; the bare attribute means out. Default: the variant's (ripple and dots fade). | |
direction | direction reflects | alternate | normal | alternate goes there and back; normal goes one way and restarts (with fade: the ripple). Default: the variant's. | |
color | color reflects | string | A palette color or any CSS color. Default: the primary color. | |
size | size reflects | xs | sm | md | lg | xl | md | Height of the figure (the dots variant is wider). |
label | label | string | Loading (text pulse.label) | Text read by screen readers. |
| Part | Description |
|---|---|
pulse | The box holding the circles. |
dot | Each circle (the static center of ripple is also part core). |
Texts
What it writes itself, in English; setStrings() translates them (Getting started: Languages).
| Key | English |
|---|---|
pulse.label | Loading |