Utility
Terminal
█
link-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/link
Usage
import { Link } from "@/components/ui/link";<Link href="https://github.com">GitHub</Link>Examples
Show URL and terminals without OSC 8
showHref appends the URL in dim text. When the terminal does not support OSC 8 hyperlinks, the same fallback is used unless you set fallback={false} or pass a custom fallback function.
Terminal
█
link-show-href █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█API Reference
Link
| Prop | Type | Default |
|---|---|---|
children | ReactNode | required |
href | string | required |
color | string | - |
showHref | boolean | false |
fallback | boolean | ((text: string, url: string) => string) | true |