MCPcopy Create free account
hub / github.com/MagicCube/agentara / Tabs

Function Tabs

web/src/components/ui/tabs.tsx:9–26  ·  view source on GitHub ↗
({
  className,
  orientation = "horizontal",
  ...props
}: React.ComponentProps<typeof TabsPrimitive.Root>)

Source from the content-addressed store, hash-verified

7import { cn } from "@/lib/utils"
8
9function Tabs({
10 className,
11 orientation = "horizontal",
12 ...props
13}: React.ComponentProps<typeof TabsPrimitive.Root>) {
14 return (
15 <TabsPrimitive.Root
16 data-slot="tabs"
17 data-orientation={orientation}
18 orientation={orientation}
19 className={cn(
20 "group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
21 className
22 )}
23 {...props}
24 />
25 )
26}
27
28const tabsListVariants = cva(
29 "group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected