Skip to content

Combobox

uitemplate

text input with inline filtered dropdown

Installation

$ bunx termuijs add combobox

Copies the source into src/components/combobox/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { Combobox } from '@termuijs/ui'
ts
new Combobox(options: ComboboxOption[], config?: ComboboxOptions)

API Reference

Combobox

PropTypeRequiredDescription
placeholderstringoptional
activeColorStyle['fg']optional
onSelect(value: string) => voidoptional
#template#combobox