TagInput
uitemplate
TagInput component
Terminal
$termuijs render tag-input
Installation
$ bunx termuijs add tag-input
Copies the source into src/components/tag-input/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { TagInput } from '@termuijs/ui'ts
new TagInput(style: Partial<Style> = {}, options: TagInputOptions = {},)API Reference
TagInput
| Prop | Type | Required | Description |
|---|---|---|---|
placeholder | string | optional | — |
defaultTags | string[] | optional | — |
onChange | (tags: string[]) => void | optional | — |