Basic toggle
Label and bindable checked state
Accessible switch-style toggle with optional label and loading state.
Default usage you can copy and adapt.
Label and bindable checked state
The props you are most likely to need, with types and defaults.
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| checked | boolean | No | false | Controlled state (bind:checked) |
| label | string | No | "" | Visible label |
| disabled | boolean | No | false | Disable interaction |
| loading | boolean | No | false | Show loading state |