Skip to content

hd-flow-rate

Live preview

<hd-flow-rate kind="water" rate="6" max="10" size="32px"></hd-flow-rate><hd-flow-rate kind="gas" rate="3" max="10" size="32px"></hd-flow-rate><hd-flow-rate kind="power" rate="8" max="10" size="32px"></hd-flow-rate>

Attributes and example

hd-flow-rate

A live flow as a small moving glyph: water drops falling, a gas flame flickering, power pulsing, quicker and fuller as more flows; still and faint at zero. Reduced motion and e-ink: still, with its fullness shown.

AttributeWhat it is
kindWhat flows.One of water, gas, power. Default water.
rateHow much flows now, e.g. {{ energy.water.flow.value }}. Or a live capability of any device, followed: {{ settings.meter.cap.measure_water }}.
maxA flow this big is full speed.Default 10.
sizeCSS size, e.g. 18px; or set --size.Default 1em.
labelAccessible label; otherwise the rate.
<hd-flow-rate kind="water" rate="6" max="10" size="32px"></hd-flow-rate><hd-flow-rate kind="gas" rate="3" max="10" size="32px"></hd-flow-rate><hd-flow-rate kind="power" rate="8" max="10" size="32px"></hd-flow-rate>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

--hd-accent
The theme’s accent: active controls, links, highlights.
--hd-chart-4
The fourth chart colour.
--hd-cool
The cool counterpart: cooling, cold water, low prices on some themes.
--hd-flat
1 on e-ink: no colours, glows or gradients, only black and white.
--hd-motion-tempo
CSS input read by hd-flow-rate.
--hd-text
Text and big numbers.
--hd-text-faint
The quietest text: hints, units, times.

Style the host

hd-flow-rate {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables