# Toggle API

> Auto-generated API reference for `Toggle` from @vuetify/v0 (Vuetify0).
> Source of truth: https://0.vuetifyjs.com/api/toggle

## Related

- https://0.vuetifyjs.com/components/actions/toggle
- https://0.vuetifyjs.com/composables/selection/create-single
- https://0.vuetifyjs.com/composables/selection/create-group
- https://0.vuetifyjs.com/components/forms/checkbox
- https://0.vuetifyjs.com/components/actions/button

## Toggle.Root

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `id` | `any` | `useId()` | no | Unique identifier (auto-generated if not provided) |
| `value` | `V \| undefined` | — | no | Selection key when inside a Toggle.Group |
| `disabled` | `boolean \| undefined` | `false` | no | Disables this toggle |
| `namespace` | `string \| undefined` | `"v0:toggle:root"` | no | Namespace for context provision to children (Indicator) |
| `groupNamespace` | `string \| undefined` | `"v0:toggle:group"` | no | Namespace for connecting to parent Toggle.Group |
| `modelValue` | `boolean \| undefined` | — | no | — |

### Events

| Name | Type | Description |
|---|---|---|
| `update:model-value` | `[value: boolean]` | — |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `ToggleRootSlotProps` | — |

## Toggle.Group

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:toggle:group"` | no | Namespace for dependency injection |
| `disabled` | `boolean \| undefined` | `false` | no | Disables the entire toggle group |
| `multiple` | `boolean \| undefined` | `false` | no | Allow multiple toggles active at once |
| `mandatory` | `boolean \| "force" \| undefined` | `false` | no | Prevent deselecting the last active toggle |
| `orientation` | `ToggleOrientation \| undefined` | `"horizontal"` | no | Layout direction for ARIA |
| `label` | `string \| undefined` | — | no | Accessible name for the group |
| `ariaLabelledby` | `string \| undefined` | — | no | ID of element that labels this group |
| `ariaDescribedby` | `string \| undefined` | — | no | ID of element that describes this group |
| `modelValue` | `T \| T[] \| undefined` | — | no | — |

### Events

| Name | Type | Description |
|---|---|---|
| `update:model-value` | `[value: T \| T[]]` | — |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `ToggleGroupSlotProps` | — |

## Toggle.Indicator

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:toggle:root"` | no | Namespace for context injection from parent Toggle.Root |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `ToggleIndicatorSlotProps` | — |
