<ui-theme-toggle>
Cycles light, dark and system theme through UI.theme.
Display · stable · since 2.0.0 · extends _UIElement
Examples
<ui-theme-toggle></ui-theme-toggle>
<ui-cluster><span>Theme</span><ui-theme-toggle></ui-theme-toggle></ui-cluster>
Playground
Generated HTML
Event log
API
Attributes and properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
busy | data-ui-busy | boolean | false |
Methods
setTheme— setTheme('light' | 'dark' | 'system').
Events
None.
Slots
None.
CSS classes
- Base class:
ui-theme-toggle