OptionaldefaultValue?: NoInfer<V> | nullInitially selected item when uncontrolled.
OptionalonValueChange?: (value: V | null) => voidCalled when an item is selected. Focus movement does not select.
OptionalselectionMode?: "single"Selects one item.
Optionalvalue?: NoInfer<V> | nullControlled selection. null clears selection.
OptionaldefaultValue?: readonly NoInfer<V>[]Initially selected identifiers when uncontrolled.
OptionalonValueChange?: (value: V[]) => voidCalled with the selected identifiers.
Toggles items independently without requiring modifier keys.
Optionalvalue?: readonly NoInfer<V>[]Controlled selected identifiers.
OptionaldefaultValue?: neverOptionalonValueChange?: neverAllows navigation and expansion without selection.
Optionalvalue?: never
Props for TreeView. A name is required; selection mode determines the value and callback types.