TreeSelect
uitemplate
expandable tree with single or multi selection
Terminal
$termuijs render tree-select
Installation
$ bunx termuijs add tree-select
Copies the source into src/components/tree-select/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { TreeSelect } from '@termuijs/ui'ts
new TreeSelect(roots: TreeSelectNode[], options: TreeSelectOptions = {})API Reference
TreeSelect
| Prop | Type | Required | Description |
|---|---|---|---|
roots | TreeSelectNode[] | required | — |
multiple | boolean | optional | — |
activeColor | Style['fg'] | optional | — |
onChange | (values: string[]) => void | optional | — |