hd-battery
A battery whose charge fills it from the bottom: while it charges a wave rolls on the surface, while it gives power a shimmer runs down through it; low (under 20%) it turns warn. Reduced motion: still; e-ink snaps.
| Attribute | What it is |
|---|---|
level | How full, 0–1. Or a live capability of any device, followed and fitted into its own range: {{ cap.measure_battery }} (0–100) just works. |
state | What it does.One of charging, giving, idle. Default idle. |
size | Its width (CSS), e.g. 28px; or set --size.Default 28px. |
label | Accessible label; otherwise the level and state. |
<hd-battery level="0.64" state="charging" size="32px"></hd-battery>