Tag
display
Tag: a short inline label with a colored border and no background fill
Terminal
$termuijs render tag
Installation
$ bunx termuijs add tag
Copies the source into src/components/tag/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Tag } from '@termuijs/widgets'ts
new Tag(text: string, style?: Partial<Style>, opts?: TagOptions)API Reference
Tag
| Prop | Type | Required | Description |
|---|---|---|---|
text | string | required | — |
variant | TagVariant | optional | Variant determines border and text color |