Toggle
A two-state button that can be either on or off.
Installation
Usage
Examples
Default
Outline
With Text
Sizes
Disabled
API Reference
Properties
Property | Type | Default | Description |
---|---|---|---|
variant | "default" | "outline" | "default" | The visual variant of the toggle. |
size | "default" | "sm" | "lg" | "default" | The size of the toggle. |
disabled | boolean | false | Whether the toggle is disabled. |
uiToggleSelected | boolean | false | Two-way binding for the toggle state. |
class | string | — | Additional CSS classes to apply to the toggle. |
Built with ❤️ by @immohammadjaved • Source code available on GitHub