hd-icon
An icon from the icon registry, by semantic name, or any Phosphor icon.
| Attribute | What it is |
|---|---|
namerequired | Semantic icon name, e.g. device.light or ui.close, a Phosphor icon as ph.<name> with underscores, e.g. ph.swimming_pool, or one picked in Homey as homeyicon.<name> (what {{ device.icon }} gives for a device with one). |
weight | Icon weight.One of regular, fill, duotone, bold. Default regular. |
size | CSS size, e.g. 24px or 1.5em.Default 1em. |
label | Accessible label; without it the icon is decorative. |
<hd-icon name="device.light" size="32px"></hd-icon><hd-icon name="device.light" weight="fill" size="32px" label="Light"></hd-icon>