Skip to content

SearchableSelect

uitemplate

searchable dropdown selector with filtering

Installation

$ bunx termuijs add searchable-select

Copies the source into src/components/searchable-select/ and installs @termuijs/core, @termuijs/widgets.

Usage

ts
import { SearchableSelect } from '@termuijs/ui'
ts
new SearchableSelect(options: SearchableSelectOption[] = [], config: SearchableSelectOptions = {})

API Reference

SearchableSelect

PropTypeRequiredDescription
placeholderstringoptional
activeColorStyle['fg']optional
onSelect(option: SearchableSelectOption, index: number) => voidoptional
#template#searchable-select