Skip to main content
You are viewing Pre-Alpha documentation.
Vuetify0 Logo
Theme
Mode
Accessibility
Vuetify

Sign in

Sign in with your preferred provider to access your account.

Selection API

API reference for the Selection components.

Selection.Root

Props

namespace

string

Namespace for dependency injection (must match SelectionItem namespace)

Default: "v0:selection"

disabled

boolean

Disables the entire selection instance

Default: false

enroll

boolean

Auto-select non-disabled items on registration

Default: false

mandatory

boolean | "force"

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

Default: false

multiple

boolean

Enable multi-selection mode (array v-model)

Default: false

modelValue

T | T[]

Events

update:model-value

[value: T | T[]]

Slots

default

SelectionRootSlotProps

Selection.Item

Props

id

string

Unique identifier (auto-generated if not provided)

label

string

Optional display label (passed through to slot, not used in registration)

value

V

Value associated with this item

disabled

MaybeRef<boolean>

Disables this specific item

namespace

string

Namespace for dependency injection

Default: "v0:selection"

Slots

default

SelectionItemSlotProps<V>
Was this page helpful?

© 2016-1970 Vuetify, LLC
Ctrl+/