PathInput
uitemplate
PathInput: filesystem path input with Tab-completion
Terminal
$termuijs render path-input
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
| Prop | Type | Required | Description |
|---|---|---|---|
placeholder | string | optional | — |
maxLength | number | optional | — |
cwd | string | optional | — |
maxCompletions | number | optional | — |
onChange | (value: string) => void | optional | — |
onSubmit | (value: string) => void | optional | — |