Skip to content

UITabs

Uncontrolled
Overview content goes here.
With right actions
Source code view.
PropTypeDefaultDescription
tabsArray<{ value: string; label: string; content: ReactNode }>requiredTab definitions
valuestringControlled active tab
initialValuestringfirst tabInitial tab for uncontrolled mode
onChange(value: string) => voidCalled when tab changes
rightActionsReactNodeContent 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}
/>