Toggle
A switch control that allows users to turn an option on or off.
| Property | Description | Type |
|---|---|---|
checked | Whether the toggle is on. Use bind:checked to read and update it. | boolean |
label | Adds a label beside the toggle button. | string |
name | Sets the input's name attribute. | string |
disabled | Prevents interaction. | boolean |
error | Adds an error message below the toggle. | string |
hint | Adds a hint below the toggle. | string |
on:change | Fires when the toggle is switched. | event |