Skip to content

PathInput

uitemplate

PathInput: filesystem path input with Tab-completion

Installation

$ bunx termuijs add path-input

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

Usage

ts
import { PathInput } from '@termuijs/ui'
ts
new PathInput(style: Partial<Style> = {}, options: PathInputOptions = {},)

API Reference

PathInput

PropTypeRequiredDescription
placeholderstringoptional
maxLengthnumberoptional
cwdstringoptional
maxCompletionsnumberoptional
onChange(value: string) => voidoptional
onSubmit(value: string) => voidoptional
#template#path-input