UIIconButton
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
icon | UIIconName | ReactNode | required | The icon to display |
label | string | required | Accessible label (used as aria-label) |
title | string | — | Tooltip text (falls back to label) |
href | string | — | URL to open when clicked (requires instrument API) |
variant | "ghost" | "secondary" | "primary" | "ghost" | Visual style |
size | "sm" | "md" | "sm" | Button size |
active | boolean | false | Active/pressed state |
disabled | boolean | false | Disables the button |
onClick | () => void | — | Click handler |
import { UIIconButton, Icon } from "tango-api";
<UIIconButton icon={Icon.Play} label="Run" onClick={handleRun} />