mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
549 B
549 B
Switch
[component-header:sl-switch]
Switches allow the user to toggle an option on or off.
<sl-switch>Switch</sl-switch>
?> This component doesn't work with standard forms. Use <sl-form> instead.
Examples
Checked
Use the checked attribute to activate the switch.
<sl-switch checked>Checked</sl-switch>
Disabled
Use the disabled attribute to disable the switch.
<sl-switch disabled>Disabled</sl-switch>
[component-metadata:sl-switch]