Home / Function/ Tabs() — ui Function Reference

Tabs() — ui Function Reference

Architecture documentation for the Tabs() function in tabs.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c2209284_2e1e_9c37_0f27_681c8e37dc55["Tabs()"]
  58f9ffee_dc1c_26dd_0cc1_6f1362eafce0["tabs.tsx"]
  c2209284_2e1e_9c37_0f27_681c8e37dc55 -->|defined in| 58f9ffee_dc1c_26dd_0cc1_6f1362eafce0
  style c2209284_2e1e_9c37_0f27_681c8e37dc55 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui/tabs.tsx lines 8–24

function Tabs({
  className,
  orientation = "horizontal",
  ...props
}: React.ComponentProps<typeof TabsPrimitive.Root>) {
  return (
    <TabsPrimitive.Root
      data-slot="tabs"
      data-orientation={orientation}
      className={cn(
        "group/tabs flex gap-2 data-horizontal:flex-col",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Tabs() do?
Tabs() is a function in the ui codebase, defined in apps/v4/examples/radix/ui/tabs.tsx.
Where is Tabs() defined?
Tabs() is defined in apps/v4/examples/radix/ui/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