UILink
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
href | string | required | Link URL |
label | string | required | Link text |
color | string | — | Custom link color (sets --tui-link-color) |
external | boolean | auto-detected | Forces external link behavior (target="_blank") |
onClick | (event: React.MouseEvent<HTMLAnchorElement>) => void | — | Click handler |
External links (starting with http:// or https://) are auto-detected and open in a new tab.
import { UILink } from "tango-api";
<UILink href="https://docs.tango.dev" label="Documentation" />