Rebar UI

1.0

opinion

TreeSelect

A trigger that opens a popover tree; picking a node closes it.

Team pickerProjects grouped by team

Selected: none

Nothing chosen
A chosen project
A chosen group

In context

Move taskSend Icon audit to another project
Move Icon auditCurrently in Harbour rebrand

New project

Props

PropTypeRequiredDefault
dataTreeNode[]Yes—
valuestring | undefinedNo—
defaultValuestring | undefinedNo—
onValueChange((value: string, label: string) => void) | undefinedNo—
placeholderstring | undefinedNoSelect an item

Built on TreeView

The popover is the real TreeView, so data has the same shape and keyboard behaviour. Picking a node closes it.

data-rebar-* attributes

data-rebar-component="tree-select" on the trigger; the popover holds a real TreeView with its own attributes.

Migrating to Ant Design

AntD's TreeSelect is a close equivalent: data (value, label, children) maps to treeData (value, title, children).