Skip to content

TreeSelect

uitemplate

expandable tree with single or multi selection

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

PropTypeRequiredDescription
rootsTreeSelectNode[]required
multiplebooleanoptional
activeColorStyle['fg']optional
onChange(values: string[]) => voidoptional
#template#tree-select