Files
webawesome/docs/components/switch.md
Cory LaViska 2226168bdc Update docs
2020-07-12 07:42:22 -04:00

557 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><br>

Disabled

Use the disabled attribute to disable the switch.

<sl-switch disabled>Disabled</sl-switch><br>

[component-metadata:sl-switch]