TreeSelect
v1.0.7NewUpdated 27 Aug 2026Select input whose popover is a checkable tree. Single mode is a radio-like leaf select; multiple mode adds tri-state parent checkboxes with a checkStrategy (all / parent / child) controlling which values are emitted. Se
Preview
Live · 12 stories▸Why this is recommendedtreeselecthierarchymulti-select+5
The default, out-of-the-box TreeSelect.
- ✓Category pickers (product / GL account trees)
- ✓Org-unit or department assignment
- ✓Warehouse-zone / location selection
- ✓Permission-scope pickers
- Single (radio-like leaf) and multiple (tri-state checkbox) modes
- checkStrategy: 'all' | 'parent' | 'child' controls emitted values
- Search filter keeps ancestor context and matched subtrees
- Chips in trigger with per-chip remove (multiple)
- Controlled + uncontrolled value, open state, default expansion
- ARIA tree pattern: roving tabindex, arrows / Space / Enter / Home / End
- Disabled nodes and branches skipped by parent toggles
- Trigger sizes sm / md / lg
- ✕Flat option lists (use Combobox / Select)
- ✕Browsing large hierarchies outside a form (use TreeView)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
optionsRoot nodes ({ value, label, children?, disabled? })
yesmultipleTri-state checkbox mode
—valueControlled selection (leaf value single; values per checkStrategy multiple)
—onValueChangeSelection change callback
—checkStrategyWhich values are emitted for fully-checked subtrees (multiple, default child)
—defaultExpandedInitially expanded branch values
—sizeTrigger size
—