Link
display
Whether to append the URL visually when terminal capabilities lack unicode/OSC 8 support
Terminal
$termuijs render link
Installation
$ bunx termuijs add link
Copies the source into src/components/link/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Link } from '@termuijs/widgets'ts
new Link(text: string, style: Partial<Style> | undefined, opts: LinkOptions)API Reference
Link
| Prop | Type | Required | Description |
|---|---|---|---|
text | string | required | — |
url | string | required | The target URL for the OSC 8 hyperlink anchor |
color | Color | optional | Underline and anchor fallback color object |
showUrlFallback | boolean | optional | Whether to append the URL visually when terminal capabilities lack unicode/OSC 8 support |