<kern-switch>
On/off switch for settings (Cloud, Bluetooth, MQTT), form-associated. The label names the thing ("Cloud"), not the action.
Examples
Settings switches
The slotted text names the setting ("Cloud"), not the action. Space toggles; the form gets value (default on) under name only while checked.
Without visible text
In tables, give the switch an accessible name with label instead of slotted text.
Kitchen Light
Properties
checkedboolean
disabledboolean
labelstring | undefined
Accessible name when there is no visible text.
namestring | undefined
valuestring
Form value when checked.
Events
kernChangeCustomEvent<{ checked: boolean; }>
Slots
(default)Label text
CSS parts
trackThe switch track