Switch
<vox-switch> is a toggle for on/off settings, announced as a switch to assistive technology.
html
<vox-switch name="dark" checked>Enable dark mode</vox-switch>API
| Attribute | Type | Default | Description |
|---|---|---|---|
checked | boolean | false | On/off state |
name | string | — | Form field name |
value | string | on | Submitted value when on |
disabled | boolean | false | Disable the switch |