Skip to content

hd-ring

Live preview

<hd-ring value="{{ cap.windowcoverings_set }}" color="cool"></hd-ring>

Attributes and example

hd-ring

A progress ring for a fraction (battery, solar share, cover position).

AttributeWhat it is
valuerequiredCurrent value, out of max. A live capability without a max is fitted into its own range. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
maxValue of a full ring.Default 1.
colorA theme colour name (accent, lit, cool, good, warn, danger, text, surface, canvas, chart-1…chart-6) or #rrggbb: whatever a Colour setting gives.One of accent, lit, cool, good, warn, danger, chart-1, chart-2, chart-3, chart-4, chart-5, chart-6.
<hd-ring value="{{ cap.windowcoverings_set }}" color="cool"></hd-ring>

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-ease-out
The easing of most movement.
--hd-motion-slow
A slow change, like a theme switching.
--hd-track
The empty part of a slider, bar or ring.

Style the host

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