API reference
@salmonui/dropdowns/tree-select
17 exported symbols: 1 component, 8 interfaces, 7 types and 1 constant. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/dropdowns/tree-select';Components
TreeSelectA dropdown whose popup is a tree. ref receives the trigger <button role="combobox">.
Interfaces
TreeSelectExpandedChangeEventTreeSelectItemRenderPropsTreeSelectLocaleTextStatic texts (TREE_SELECT_DEFAULT_LOCALE_TEXT holds the defaults).TreeSelectMultiplePropsTreeSelectOpenChangeEventTreeSelectPartPropsPure per-item props merged onto the rendered option or chip (rendered items only).TreeSelectSinglePropsTreeSelectValueChangeEventSecond argument of onValueChange: frozen, read-only. items is materialized on first read.
Types
TreeSelectEventSourceHow a change was made.TreeSelectExpandOn'auto': a click on a non-selectable parent toggles it; 'click': a click on any parent toggles it (Enter or Space selects); 'doubleClick': double-click toggles;…TreeSelectOpenChangeReasonTreeSelectPartTreeSelectPropsTreeSelectValueA node value (what getItemValue returns): a string or a number.TreeSelectValueChangeReason