Switch
InputsA toggle switch for boolean values.
Preview
Usage
<Switch label="Notifications" bind:checked={enabled} />Props
| Name | Type | Default | Description |
|---|---|---|---|
| checked | boolean | false | Whether the switch is on. |
| label | string | '' | Label text. |
A toggle switch for boolean values.
<Switch label="Notifications" bind:checked={enabled} />| Name | Type | Default | Description |
|---|---|---|---|
| checked | boolean | false | Whether the switch is on. |
| label | string | '' | Label text. |