# Selection API

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

## Related

- https://0.vuetifyjs.com/components/providers/selection
- https://0.vuetifyjs.com/composables/selection/create-selection
- https://0.vuetifyjs.com/components/providers/single
- https://0.vuetifyjs.com/components/providers/group

## Selection.Root

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `namespace` | `string \| undefined` | `"v0:selection"` | no | Namespace for dependency injection (must match SelectionItem namespace) |
| `disabled` | `boolean \| undefined` | `false` | no | Disables the entire selection instance |
| `enroll` | `boolean \| undefined` | `false` | no | Auto-select non-disabled items on registration |
| `mandatory` | `boolean \| "force" \| undefined` | `false` | no | Controls mandatory selection behavior: - false (default): No mandatory selection enforcement - true: Prevents deselecting the last selected item - `force`: Automatically selects the first non-disabled item on registration |
| `multiple` | `boolean \| undefined` | `false` | no | Enable multi-selection mode (array v-model) |
| `modelValue` | `T \| T[] \| undefined` | — | no | — |

### Events

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

### Slots

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

## Selection.Item

### Props

| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| `id` | `string \| undefined` | — | no | Unique identifier (auto-generated if not provided) |
| `label` | `string \| undefined` | — | no | Optional display label (passed through to slot, not used in registration) |
| `value` | `V \| undefined` | — | no | Value associated with this item |
| `disabled` | `MaybeRefOrGetter<boolean> \| undefined` | — | no | Disables this specific item |
| `namespace` | `string \| undefined` | `"v0:selection"` | no | Namespace for dependency injection |

### Slots

| Name | Type | Description |
|---|---|---|
| `default` | `SelectionItemSlotProps<V>` | — |
