TreeSelect
@rockshin/tao-uiSelect values from hierarchical options with search, multiple selection and linked checkboxes.
Each example can be copied and run independently. Use the device control on framed previews to switch between desktop and phone widths.
Sizes are small, medium and large; the compatible middle alias uses the same dimensions as medium.
Examples
Searchable single selection
Use treeNodeFilterProp="title" when the title is the searchable label.
Controlled multiple values
Use a value array and responsive tag overflow for a compact input.
Parent and child checks
SHOW_PARENT displays the parent when all enabled descendants are selected.
Keep the selected label
labelInValue returns an object containing the value and its rendered label.
Value: design
Flat data with parent IDs
treeDataSimpleMode converts id/pId records into a tree without changing your API response shape.
Map field names
Map label, value and children when server data uses different names.
Sizes, variants and status
Local appearance props override the provider defaults.
Narrow-screen selection
The popup stays within the phone viewport. TreeSelect uses its tree popup on both desktop and mobile.