hd-tab
One pane of hd-tabs, directly inside it.
| Attribute | What it is |
|---|---|
namerequired | What selected and event.value call it, e.g. today. |
labelrequired | The text on its tab. |
icon | Semantic icon on its tab, before the label. |
badge | A badge on its tab: a count (1 and up, 99+ past 99) or dot; empty or 0 shows none. Screen readers hear the count with the label. |
badge-tone | The badge in the alert colour (--hd-tabs-badge-alert, else danger).One of accent, alert. Default accent. |
pulse | The badge pulses, e.g. while an alert holds; not at reduced motion.Default false. |
color | Its own accent in place of the theme’s, for its tab and the indicator under it: a theme colour name (accent, lit, cool, good, warn, danger, chart-1…) or #rrggbb. |
open-when | Opens this tab when it turns true, e.g. open-when="{{ doorbell.alarm_generic }}", saying so as change; never for what holds when the tabs appear, nor within 30 seconds of a touch.Default false. |
<hd-tab name="month" label="Month"><p>This month</p></hd-tab>