Components
Components
TagField
Filterable multi-select that shows selections as removable tags.
newfree
Install
@hewnui/ui · hewnui
TagField (also exported as MultiSelect) combines React Aria ComboBox
multi-select with a TagGroup of removable chips. Lives under Pickers in the
component gallery.
Pick the stacks you ship with.1 selected.Pick the stacks you ship with.1 selected.
React
Usage
MultiSelect / MultiSelectItem are aliases for the same API.
States
- Empty tag list (optional
emptyLabel) - Empty filtered list (
listEmptyLabel) - Disabled field and disabled items
- Invalid +
errorMessage - Maximum selections reached (announced live)
Accessibility
- Combobox + listbox semantics from React Aria
- Selected values render in a TagGroup grid with remove buttons
- Backspace on an empty input removes the last tag
- Arrow keys move between tags; Delete/remove clears the focused tag
- Screen readers hear selection count and max-selection announcements
API reference
Props for TagField from @hewnui/ui/tag-field. Generated from component types — not hand-written.
Prop
Type