UITabs
Preview
Section titled “Preview”| Prop | Type | Default | Description |
|---|---|---|---|
tabs | Array<{ value: string; label: string; content: ReactNode }> | required | Tab definitions |
value | string | — | Controlled active tab |
initialValue | string | first tab | Initial tab for uncontrolled mode |
onChange | (value: string) => void | — | Called when tab changes |
rightActions | ReactNode | — | Content rendered to the right of the tab list |
import { UITabs } from "tango-api";
<UITabs tabs={[ { value: "code", label: "Code", content: <CodeView /> }, { value: "diff", label: "Diff", content: <DiffView /> }, ]} value={activeTab} onChange={setActiveTab}/>