Single API
API reference for the Single components.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Single | Providers |
| createSingle | Selection |
| Selection | Providers |
Single.Root
Props
namespace
string | undefinedNamespace for dependency injection (must match SingleItem namespace)
Default: "v0:single"
mandatory
boolean | "force" | undefinedControls mandatory single behavior: - false (default): No mandatory single enforcement - true: Prevents deselecting the last selected item - `force`: Automatically selects the first non-disabled item on registration
Default: false
modelValue
T | T[] | undefinedSlots
default
SingleRootSlotPropsSingle.Item
Props
Slots
default
SingleItemSlotProps<V>