Toggle
Component used to quickly switch between two possible states: true and false.
Usage
import { RToggle } from '@rebilly/revel';
<r-toggle
v-model="model"
label="My label"
name="toggle-example"
@update:model-value="change"
/>
Example
| Name | Type | Default | Description |
|---|---|---|---|
| label | Nullable, string | null | Displays a label for the toggle |
| name | string | () => nanoid() | Adds a unique id to the toggle |
| modelValue | boolean | false | Parent model for the component |
| disabled | boolean | false | Disables the toggle |
| Name | Description |
|---|---|
| update:modelValue |