CodeTabs() — ui Function Reference
Architecture documentation for the CodeTabs() function in code-tabs.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD f910f749_8d2a_fa0b_efc0_fc96479e3079["CodeTabs()"] da569416_36c9_c1a1_e9bd_0fe3f1625b72["code-tabs.tsx"] f910f749_8d2a_fa0b_efc0_fc96479e3079 -->|defined in| da569416_36c9_c1a1_e9bd_0fe3f1625b72 style f910f749_8d2a_fa0b_efc0_fc96479e3079 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/components/code-tabs.tsx lines 8–26
export function CodeTabs({ children }: React.ComponentProps<typeof Tabs>) {
const [config, setConfig] = useConfig()
const installationType = React.useMemo(() => {
return config.installationType || "cli"
}, [config])
return (
<Tabs
value={installationType}
onValueChange={(value) =>
setConfig({ ...config, installationType: value as "cli" | "manual" })
}
className="relative mt-6 w-full *:data-[slot=tabs-list]:gap-6"
>
{children}
</Tabs>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does CodeTabs() do?
CodeTabs() is a function in the ui codebase, defined in apps/v4/components/code-tabs.tsx.
Where is CodeTabs() defined?
CodeTabs() is defined in apps/v4/components/code-tabs.tsx at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free