The initial selected keys in the collection (uncontrolled).
Optionaldir
dir?:string
OptionaldisabledKeys
disabledKeys?:Iterable<Key,any,any>
The item keys that are disabled. These items cannot be selected, focused, or otherwise interacted with.
OptionaldisallowEmptySelection
disallowEmptySelection?:boolean
Whether the collection allows empty selection.
OptionalescapeKeyBehavior
escapeKeyBehavior?:"none"|"clearSelection"
Whether pressing the escape key should clear selection in the TagGroup or not.
Most experiences should not modify this option as it eliminates a keyboard user's ability to
easily clear selection. Only use if the escape key is being handled externally or should not
trigger selection clearing contextually.
Overrides the default DOM element with a custom render function.
This allows rendering existing components with built-in styles and behaviors
such as router links, animation libraries, and pre-styled components.
Requirements:
You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>).
Only a single root DOM element can be rendered (no fragments).
You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
The currently selected keys in the collection (controlled).
OptionalselectionBehavior
selectionBehavior?:SelectionBehavior
How multiple selection should behave in the collection.
OptionalselectionMode
selectionMode?:SelectionMode
The type of selection that is allowed in the collection.
OptionalshouldSelectOnPressUp
shouldSelectOnPressUp?:boolean
Whether selection should occur on press up instead of press down.
Optionalslot
slot?:string|null
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
Props for the TagGroup component.