Skip to content

Tag

widgetsdisplay

Tag: a short inline label with a colored border and no background fill

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

PropTypeRequiredDescription
textstringrequired
variantTagVariantoptionalVariant determines border and text color
#display#tag