Select
uitemplate
single-item dropdown selector
Terminal
$termuijs render select
Installation
$ bunx termuijs add select
Copies the source into src/components/select/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Select } from '@termuijs/ui'ts
new Select(options: SelectOption[], config: SelectOptions = {}, style?: Partial<Style>)API Reference
Select
| Prop | Type | Required | Description |
|---|---|---|---|
placeholder | string | optional | — |
activeColor | Style['fg'] | optional | — |
onSelect | (option: SelectOption, index: number) => void | optional | — |