Switch
A control that allows the user to toggle between checked and not checked.
Installation
Usage
Examples
Default
Disabled
Checked
Form
Email Notifications
Receive emails about new products, features, and more.
Receive emails about your account security.
API Reference
Properties
Property | Type | Default | Description |
---|---|---|---|
checked | boolean | false | Whether the switch is checked. |
disabled | boolean | false | Whether the switch is disabled. |
class | string | — | Additional CSS classes to apply to the switch. |
Outputs
Output | Type | Description |
---|---|---|
checkedChange | boolean | Emitted when the checked state changes. |
Built with ❤️ by @immohammadjaved • Source code available on GitHub