Utility
Terminal
╭────────────╮ ╭───────╮ ╭─────╮ █
│ typescript │ │ react │ │ ink │ █
╰────────────╯ ╰───────╯ ╰─────╯ █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/tag
Usage
import { Tag } from "@/components/ui/tag";<Tag>typescript</Tag>Examples
Outline
A variant with a muted border style.
Terminal
█
tag-outline █
No opentui live preview is registered for this example yet. █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█API Reference
Tag
| Prop | Type | Default |
|---|---|---|
children | ReactNode | required |
onRemove | () => void | - |
color | string | - |
variant | "default" | "outline" | "default" |