# @salmonui/dropdowns/tree-select API reference

> 17 exported symbols of @salmonui/dropdowns/tree-select: 1 component, 8 interfaces, 7 types and 1 constant.

Canonical: https://salmonui.dev/docs/reference/dropdowns/tree-select

```ts
import { … } from '@salmonui/dropdowns/tree-select';
```

## Components

### TreeSelect

Kind: component

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelect

```ts
function TreeSelect<Item = unknown>(props: TreeSelectProps<Item>): ReactNode;
```

A dropdown whose popup is a tree. `ref`
receives the trigger `<button role="combobox">`.

## Interfaces

### TreeSelectExpandedChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectExpandedChangeEvent

```ts
interface TreeSelectExpandedChangeEvent<Item> {
    readonly id: DropdownValue | null;
    readonly item: Item | undefined;
    readonly source: DropdownEventSource;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: DropdownValue \| null;` |  | The node that was expanded or collapsed, or `null` for several at once. |
| `item` | `readonly item: Item \| undefined;` |  |  |
| `source` | `readonly source: DropdownEventSource;` |  |  |

### TreeSelectItemRenderProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectItemRenderProps

```ts
interface TreeSelectItemRenderProps<Item> {
    readonly item: Item;
    readonly label: string;
    readonly level: number;
    readonly selected: boolean;
    readonly checked: boolean | 'mixed';
    readonly expanded: boolean;
    readonly active: boolean;
    readonly disabled: boolean;
    readonly matches: readonly (readonly [
        number,
        number
    ])[];
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `item` | `readonly item: Item;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `level` | `readonly level: number;` |  |  |
| `selected` | `readonly selected: boolean;` |  |  |
| `checked` | `readonly checked: boolean \| 'mixed';` |  | `true`, `false` or `'mixed'` with `indicator="checkbox"`. |
| `expanded` | `readonly expanded: boolean;` |  |  |
| `active` | `readonly active: boolean;` |  |  |
| `disabled` | `readonly disabled: boolean;` |  |  |
| `matches` | `readonly matches: readonly (readonly [     number,     number ])[];` |  | `[start, end)` offsets of the matched text in `label` while searching. |

### TreeSelectLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectLocaleText

```ts
interface TreeSelectLocaleText extends DropdownLocaleText {
    readonly loadingChildren: string;
}
```

Static texts (`TREE_SELECT_DEFAULT_LOCALE_TEXT` holds the defaults).

Members (19):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `loadingChildren` | `readonly loadingChildren: string;` |  | Status text of a node whose children are loading. |
| `noResults` | `noResults: string;` | inherited |  |
| `noData` | `noData: string;` | inherited |  |
| `loading` | `loading: string;` | inherited |  |
| `loadError` | `loadError: string;` | inherited |  |
| `retry` | `retry: string;` | inherited |  |
| `selectAll` | `selectAll: string;` | inherited |  |
| `deselectAll` | `deselectAll: string;` | inherited |  |
| `clear` | `clear: string;` | inherited |  |
| `removeValue` | `removeValue: (label: string) => string;` | inherited |  |
| `selectedCount` | `selectedCount: (count: number, plural: LDMLPluralRule) => string;` | inherited |  |
| `moreValues` | `moreValues: (count: number) => string;` | inherited |  |
| `resultCount` | `resultCount: (count: number, plural: LDMLPluralRule) => string;` | inherited |  |
| `limitReached` | `limitReached: (max: number) => string;` | inherited |  |
| `search` | `search: string;` | inherited |  |
| `close` | `close: string;` | inherited |  |
| `toggle` | `toggle: string;` | inherited |  |
| `selectedValues` | `selectedValues: string;` | inherited |  |
| `create` | `create: (text: string) => string;` | inherited |  |

### TreeSelectMultipleProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectMultipleProps

```ts
interface TreeSelectMultipleProps<Item> extends TreeSelectOwnProps<Item> {
    readonly multiple: true;
    readonly value?: readonly DropdownValue[];
    readonly defaultValue?: readonly DropdownValue[];
    readonly onValueChange?: (value: readonly DropdownValue[], event: DropdownValueChangeEvent<Item>) => void;
}
```

Members (66):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `multiple` | `readonly multiple: true;` |  |  |
| `value` | `readonly value?: readonly DropdownValue[];` | optional |  |
| `defaultValue` | `readonly defaultValue?: readonly DropdownValue[];` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: readonly DropdownValue[], event: DropdownValueChangeEvent<Item>) => void;` | optional |  |
| `data` | `data: readonly Item[];` | inherited | Items: nested (`getChildren`) or flat (`getParentId`). |
| `getItemValue` | `getItemValue?: ((item: Item) => TreeSelectValue);` | optional, inherited | Default: `item.value`, or `item.id` when there is no `value` field. |
| `getItemLabel` | `getItemLabel?: ((item: Item) => string);` | optional, inherited | Default: `item.label`, else `item.text`, else the value. |
| `getChildren` | `getChildren?: ((item: Item) => readonly Item[] \| null \| undefined);` | optional, inherited | Nested data: the children of an item. Default `item.children`. |
| `getParentId` | `getParentId?: ((item: Item) => TreeSelectValue \| null \| undefined);` | optional, inherited | Flat (self-referential) data: the parent value of an item; replaces `getChildren`. |
| `hasChildren` | `hasChildren?: ((item: Item) => boolean);` | optional, inherited | Shows an expand twisty before the children are known; expanding then calls `loadChildren`. |
| `loadChildren` | `loadChildren?: ((item: Item, options: { readonly signal: AbortSignal; }) => Promise<readonly Item[]>);` | optional, inherited | Load on demand: the children of `item` (aborted through `signal` when stale). |
| `onLoadError` | `onLoadError?: ((error: unknown, item: Item) => void);` | optional, inherited |  |
| `isItemDisabled` | `isItemDisabled?: ((item: Item) => boolean);` | optional, inherited | Default: `item.disabled === true`. A disabled parent disables its subtree. |
| `isItemSelectable` | `isItemSelectable?: ((item: Item) => boolean);` | optional, inherited | Nodes that cannot be chosen still expand (default: every enabled node). |
| `getItemIcon` | `getItemIcon?: ((item: Item) => ReactNode);` | optional, inherited |  |
| `getItemProps` | `getItemProps?: ((item: Item) => (DropdownPartProps & { readonly title?: string \| undefined; }) \| undefined);` | optional, inherited | Pure per-item props merged onto the rendered `treeitem` (`title`, `data-*`, `className`, `style`). |
| `selectedItems` | `selectedItems?: readonly Item[];` | optional, inherited | Items of the current value that are not in loaded `data` (lazily loaded nodes): their labels. |
| `expanded` | `expanded?: readonly TreeSelectValue[];` | optional, inherited |  |
| `defaultExpanded` | `defaultExpanded?: readonly TreeSelectValue[];` | optional, inherited |  |
| `onExpandedChange` | `onExpandedChange?: ((expanded: readonly TreeSelectValue[], event: TreeSelectExpandedChangeEvent<Item>) => void);` | optional, inherited |  |
| `expandOn` | `expandOn?: TreeSelectExpandOn;` | optional, inherited |  |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited |  |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: DropdownOpenChangeEvent) => void);` | optional, inherited |  |
| `popupMode` | `popupMode?: "auto" \| "popover" \| "sheet";` | optional, inherited | `'popover'` (default), `'sheet'` (full-screen dialog) or `'auto'` (the sheet on coarse-pointer phones, decided at open time). |
| `searchable` | `searchable?: boolean;` | optional, inherited | A search field in the popup; matches keep their ancestors visible. |
| `searchPlaceholder` | `searchPlaceholder?: string;` | optional, inherited |  |
| `searchOperator` | `searchOperator?: "contains" \| "endsWith" \| "startsWith" \| ((item: Item, text: string) => boolean);` | optional, inherited |  |
| `matchCase` | `matchCase?: boolean;` | optional, inherited |  |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((text: string, event: { readonly source: DropdownEventSource; }) => void);` | optional, inherited |  |
| `indicator` | `indicator?: "check" \| "checkbox";` | optional, inherited | `'checkbox'` (with `multiple`): tri-state checks; the value is every checked node. |
| `checkPropagation` | `checkPropagation?: "cascade" \| "none";` | optional, inherited | Checks of a parent and its descendants follow each other (default `'cascade'`). |
| `showSelectAll` | `showSelectAll?: boolean;` | optional, inherited |  |
| `closeOnSelect` | `closeOnSelect?: boolean;` | optional, inherited |  |
| `valueDisplay` | `valueDisplay?: "chips" \| "count" \| "text";` | optional, inherited |  |
| `maxVisibleValues` | `maxVisibleValues?: number;` | optional, inherited |  |
| `valueSeparator` | `valueSeparator?: string;` | optional, inherited |  |
| `showTrigger` | `showTrigger?: boolean;` | optional, inherited |  |
| `clearable` | `clearable?: boolean;` | optional, inherited |  |
| `placeholder` | `placeholder?: string;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `name` | `name?: string;` | optional, inherited |  |
| `required` | `required?: boolean;` | optional, inherited |  |
| `form` | `form?: string;` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited |  |
| `autoFocus` | `autoFocus?: boolean;` | optional, inherited |  |
| `maxVisibleItems` | `maxVisibleItems?: number;` | optional, inherited | Popup height in rows. Default 8. |
| `virtualization` | `virtualization?: boolean;` | optional, inherited | Windowed tree; on by default above 100 visible rows. |
| `locale` | `locale?: string;` | optional, inherited |  |
| `renderItem` | `renderItem?: ((props: TreeSelectItemRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderValue` | `renderValue?: ((props: { readonly items: readonly Item[]; readonly labels: readonly string[]; }) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((props: { readonly reason: "noData" \| "noMatch"; }) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((props: { readonly error: unknown; readonly item: Item; readonly retry: () => void; }) => ReactNode);` | optional, inherited |  |
| `renderLoading` | `renderLoading?: ((props: { readonly item: Item; }) => ReactNode);` | optional, inherited |  |
| `popupHeader` | `popupHeader?: ReactNode;` | optional, inherited |  |
| `popupFooter` | `popupFooter?: ReactNode;` | optional, inherited |  |
| `highlightMatches` | `highlightMatches?: boolean;` | optional, inherited |  |
| `size` | `size?: "lg" \| "md" \| "sm";` | optional, inherited | Control size: `'sm'` 24px, `'md'` 32px (default), `'lg'` 40px tall. |
| `localeText` | `localeText?: Partial<TreeSelectLocaleText>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<TreeSelectPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<TreeSelectPart, CSSProperties>>;` | optional, inherited |  |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The trigger `<button role="combobox">`. |

### TreeSelectOpenChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectOpenChangeEvent

```ts
interface DropdownOpenChangeEvent {
    readonly source: DropdownEventSource;
    readonly reason: DropdownOpenChangeReason;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: DropdownEventSource;` |  |  |
| `reason` | `readonly reason: DropdownOpenChangeReason;` |  |  |

### TreeSelectPartProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectPartProps

```ts
interface DropdownPartProps {
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly [data: `data-${string}`]: string | number | boolean | undefined;
}
```

Pure per-item props merged onto the rendered option or chip (rendered items only).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |

### TreeSelectSingleProps

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectSingleProps

```ts
interface TreeSelectSingleProps<Item> extends TreeSelectOwnProps<Item> {
    readonly multiple?: false;
    readonly value?: DropdownValue | null;
    readonly defaultValue?: DropdownValue | null;
    readonly onValueChange?: (value: DropdownValue | null, event: DropdownValueChangeEvent<Item>) => void;
}
```

Members (66):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `multiple` | `readonly multiple?: false;` | optional |  |
| `value` | `readonly value?: DropdownValue \| null;` | optional |  |
| `defaultValue` | `readonly defaultValue?: DropdownValue \| null;` | optional |  |
| `onValueChange` | `readonly onValueChange?: (value: DropdownValue \| null, event: DropdownValueChangeEvent<Item>) => void;` | optional |  |
| `data` | `data: readonly Item[];` | inherited | Items: nested (`getChildren`) or flat (`getParentId`). |
| `getItemValue` | `getItemValue?: ((item: Item) => TreeSelectValue);` | optional, inherited | Default: `item.value`, or `item.id` when there is no `value` field. |
| `getItemLabel` | `getItemLabel?: ((item: Item) => string);` | optional, inherited | Default: `item.label`, else `item.text`, else the value. |
| `getChildren` | `getChildren?: ((item: Item) => readonly Item[] \| null \| undefined);` | optional, inherited | Nested data: the children of an item. Default `item.children`. |
| `getParentId` | `getParentId?: ((item: Item) => TreeSelectValue \| null \| undefined);` | optional, inherited | Flat (self-referential) data: the parent value of an item; replaces `getChildren`. |
| `hasChildren` | `hasChildren?: ((item: Item) => boolean);` | optional, inherited | Shows an expand twisty before the children are known; expanding then calls `loadChildren`. |
| `loadChildren` | `loadChildren?: ((item: Item, options: { readonly signal: AbortSignal; }) => Promise<readonly Item[]>);` | optional, inherited | Load on demand: the children of `item` (aborted through `signal` when stale). |
| `onLoadError` | `onLoadError?: ((error: unknown, item: Item) => void);` | optional, inherited |  |
| `isItemDisabled` | `isItemDisabled?: ((item: Item) => boolean);` | optional, inherited | Default: `item.disabled === true`. A disabled parent disables its subtree. |
| `isItemSelectable` | `isItemSelectable?: ((item: Item) => boolean);` | optional, inherited | Nodes that cannot be chosen still expand (default: every enabled node). |
| `getItemIcon` | `getItemIcon?: ((item: Item) => ReactNode);` | optional, inherited |  |
| `getItemProps` | `getItemProps?: ((item: Item) => (DropdownPartProps & { readonly title?: string \| undefined; }) \| undefined);` | optional, inherited | Pure per-item props merged onto the rendered `treeitem` (`title`, `data-*`, `className`, `style`). |
| `selectedItems` | `selectedItems?: readonly Item[];` | optional, inherited | Items of the current value that are not in loaded `data` (lazily loaded nodes): their labels. |
| `expanded` | `expanded?: readonly TreeSelectValue[];` | optional, inherited |  |
| `defaultExpanded` | `defaultExpanded?: readonly TreeSelectValue[];` | optional, inherited |  |
| `onExpandedChange` | `onExpandedChange?: ((expanded: readonly TreeSelectValue[], event: TreeSelectExpandedChangeEvent<Item>) => void);` | optional, inherited |  |
| `expandOn` | `expandOn?: TreeSelectExpandOn;` | optional, inherited |  |
| `open` | `open?: boolean;` | optional, inherited |  |
| `defaultOpen` | `defaultOpen?: boolean;` | optional, inherited |  |
| `onOpenChange` | `onOpenChange?: ((open: boolean, event: DropdownOpenChangeEvent) => void);` | optional, inherited |  |
| `popupMode` | `popupMode?: "auto" \| "popover" \| "sheet";` | optional, inherited | `'popover'` (default), `'sheet'` (full-screen dialog) or `'auto'` (the sheet on coarse-pointer phones, decided at open time). |
| `searchable` | `searchable?: boolean;` | optional, inherited | A search field in the popup; matches keep their ancestors visible. |
| `searchPlaceholder` | `searchPlaceholder?: string;` | optional, inherited |  |
| `searchOperator` | `searchOperator?: "contains" \| "endsWith" \| "startsWith" \| ((item: Item, text: string) => boolean);` | optional, inherited |  |
| `matchCase` | `matchCase?: boolean;` | optional, inherited |  |
| `ignoreAccents` | `ignoreAccents?: boolean;` | optional, inherited |  |
| `onSearchChange` | `onSearchChange?: ((text: string, event: { readonly source: DropdownEventSource; }) => void);` | optional, inherited |  |
| `indicator` | `indicator?: "check" \| "checkbox";` | optional, inherited | `'checkbox'` (with `multiple`): tri-state checks; the value is every checked node. |
| `checkPropagation` | `checkPropagation?: "cascade" \| "none";` | optional, inherited | Checks of a parent and its descendants follow each other (default `'cascade'`). |
| `showSelectAll` | `showSelectAll?: boolean;` | optional, inherited |  |
| `closeOnSelect` | `closeOnSelect?: boolean;` | optional, inherited |  |
| `valueDisplay` | `valueDisplay?: "chips" \| "count" \| "text";` | optional, inherited |  |
| `maxVisibleValues` | `maxVisibleValues?: number;` | optional, inherited |  |
| `valueSeparator` | `valueSeparator?: string;` | optional, inherited |  |
| `showTrigger` | `showTrigger?: boolean;` | optional, inherited |  |
| `clearable` | `clearable?: boolean;` | optional, inherited |  |
| `placeholder` | `placeholder?: string;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `readOnly` | `readOnly?: boolean;` | optional, inherited |  |
| `name` | `name?: string;` | optional, inherited |  |
| `required` | `required?: boolean;` | optional, inherited |  |
| `form` | `form?: string;` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited |  |
| `autoFocus` | `autoFocus?: boolean;` | optional, inherited |  |
| `maxVisibleItems` | `maxVisibleItems?: number;` | optional, inherited | Popup height in rows. Default 8. |
| `virtualization` | `virtualization?: boolean;` | optional, inherited | Windowed tree; on by default above 100 visible rows. |
| `locale` | `locale?: string;` | optional, inherited |  |
| `renderItem` | `renderItem?: ((props: TreeSelectItemRenderProps<Item>) => ReactNode);` | optional, inherited |  |
| `renderValue` | `renderValue?: ((props: { readonly items: readonly Item[]; readonly labels: readonly string[]; }) => ReactNode);` | optional, inherited |  |
| `renderEmpty` | `renderEmpty?: ((props: { readonly reason: "noData" \| "noMatch"; }) => ReactNode);` | optional, inherited |  |
| `renderError` | `renderError?: ((props: { readonly error: unknown; readonly item: Item; readonly retry: () => void; }) => ReactNode);` | optional, inherited |  |
| `renderLoading` | `renderLoading?: ((props: { readonly item: Item; }) => ReactNode);` | optional, inherited |  |
| `popupHeader` | `popupHeader?: ReactNode;` | optional, inherited |  |
| `popupFooter` | `popupFooter?: ReactNode;` | optional, inherited |  |
| `highlightMatches` | `highlightMatches?: boolean;` | optional, inherited |  |
| `size` | `size?: "lg" \| "md" \| "sm";` | optional, inherited | Control size: `'sm'` 24px, `'md'` 32px (default), `'lg'` 40px tall. |
| `localeText` | `localeText?: Partial<TreeSelectLocaleText>;` | optional, inherited |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `classNames` | `classNames?: Partial<Record<TreeSelectPart, string>>;` | optional, inherited |  |
| `styles` | `styles?: Partial<Record<TreeSelectPart, CSSProperties>>;` | optional, inherited |  |
| `ref` | `ref?: Ref<HTMLButtonElement>;` | optional, inherited | The trigger `<button role="combobox">`. |

### TreeSelectValueChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectValueChangeEvent

```ts
interface DropdownValueChangeEvent<Item> {
    readonly source: DropdownEventSource;
    readonly reason: DropdownValueChangeReason;
    readonly previousValue: readonly DropdownValue[];
    readonly items: readonly Item[];
}
```

Second argument of `onValueChange`: frozen, read-only. `items` is materialized on first read.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source: DropdownEventSource;` |  |  |
| `reason` | `readonly reason: DropdownValueChangeReason;` |  |  |
| `previousValue` | `readonly previousValue: readonly DropdownValue[];` |  |  |
| `items` | `readonly items: readonly Item[];` |  | Items of the new value (loaded data, `selectedItems` or created items); computed on first read. |

## Types

### TreeSelectEventSource

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectEventSource

```ts
type DropdownEventSource = 'pointer' | 'keyboard' | 'touch' | 'api';
```

How a change was made.

### TreeSelectExpandOn

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectExpandOn

```ts
type TreeSelectExpandOn = 'auto' | 'click' | 'doubleClick' | 'none';
```

`'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; `'none'`: only the twisty and the arrow keys.

### TreeSelectOpenChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectOpenChangeReason

```ts
type DropdownOpenChangeReason = 'trigger' | 'keyboard' | 'type' | 'select' | 'escape' | 'outside' | 'tab' | 'blur';
```

### TreeSelectPart

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectPart

```ts
type TreeSelectPart = 'root' | 'trigger' | 'value' | 'chip' | 'popup' | 'tree' | 'item' | 'search';
```

### TreeSelectProps

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectProps

```ts
type TreeSelectProps<Item = unknown> = TreeSelectSingleProps<Item> | TreeSelectMultipleProps<Item>;
```

### TreeSelectValue

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectValue

```ts
type TreeSelectValue = string | number;
```

A node value (what `getItemValue` returns): a string or a number.

### TreeSelectValueChangeReason

Kind: type

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TreeSelectValueChangeReason

```ts
type DropdownValueChangeReason = 'select' | 'deselect' | 'clear' | 'remove' | 'add' | 'create' | 'selectAll' | 'reset';
```

## Constants

### TREE_SELECT_DEFAULT_LOCALE_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/dropdowns/tree-select/TREE_SELECT_DEFAULT_LOCALE_TEXT

```ts
const TREE_SELECT_DEFAULT_LOCALE_TEXT: TreeSelectLocaleText;
```
