Toggle
<vn.Toggle> Import as <vn.Toggle>
A checkbox styled as a toggle switch.
Renders as <input type="checkbox"> Underlying HTML element
Preview
Example
<vn.Toggle bind:checked={enabled} /> Attributes
| Attribute Component-specific prop | Accepts Values or types it accepts |
|---|---|
checked | Default: false |