gov-theme-switch
Properties
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
ariaLabelDark | aria-label-dark | Label in dark mode | "Přepnout na světlý mód" | "Přepnout na světlý mód" |
ariaLabelLight | aria-label-light | Label in light mode | "Přepnout na tmavý mód" | "Přepnout na tmavý mód" |
displayLabel | display-label | Display switch label | boolean | false |
labelDark | label-dark | Label in dark mode | "Tmavý mód" | "Tmavý mód" |
labelLight | label-light | Label in light mode | "Světlý mód" | "Světlý mód" |
size | size | Switch's size. | "l" | "m" | "s" | "xl" | "xs" | "m" |
Events
Event | Description | Type |
---|---|---|
gov-change | Called when the theme is changed by the user | CustomEvent<ThemeSwitchEvent> |
Dependencies
Depends on
Graph
Built with StencilJS