{"$schema":"https://ui.logic2b.com/schema/registry-item.json","name":"tabs","type":"registry:ui","description":"A set of layered sections of content, only one of which is displayed at a time, built on Radix Tabs. Use it to switch between related views without navigation. Parts: Tabs (root), TabsList, TabsTrigger, TabsContent.","dependencies":["radix-ui"],"registryDependencies":["utils"],"files":[{"path":"ui/tabs.tsx","type":"registry:ui","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Tabs as TabsPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Tabs({\n  className,\n  ...props\n}: React.ComponentProps<typeof TabsPrimitive.Root>) {\n  return (\n    <TabsPrimitive.Root\n      data-slot=\"tabs\"\n      className={cn(\"flex flex-col gap-2\", className)}\n      {...props}\n    />\n  )\n}\n\nfunction TabsList({\n  className,\n  ...props\n}: React.ComponentProps<typeof TabsPrimitive.List>) {\n  return (\n    <TabsPrimitive.List\n      data-slot=\"tabs-list\"\n      className={cn(\n        \"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TabsTrigger({\n  className,\n  ...props\n}: React.ComponentProps<typeof TabsPrimitive.Trigger>) {\n  return (\n    <TabsPrimitive.Trigger\n      data-slot=\"tabs-trigger\"\n      className={cn(\n        \"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nfunction TabsContent({\n  className,\n  ...props\n}: React.ComponentProps<typeof TabsPrimitive.Content>) {\n  return (\n    <TabsPrimitive.Content\n      data-slot=\"tabs-content\"\n      className={cn(\"flex-1 outline-none\", className)}\n      {...props}\n    />\n  )\n}\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n"}],"categories":["navigation"],"accessibility":{"support":"primitive","pattern":"tabs","primitive":"Radix Tabs","keyboard":[{"keys":["ArrowLeft","ArrowRight","Home","End"],"action":"Move focus and selection between tabs according to orientation."},{"keys":["Tab"],"action":"Move from the active tab into its tabpanel."}],"aria":["Manages tablist, tab and tabpanel roles plus aria-selected/controls linkage."],"consumer":["Give every trigger a concise label and keep each panel associated with one trigger."]},"api":{"source":"src/ui/tabs.tsx","exports":[{"name":"Tabs","kind":"component","propsType":"React.ComponentProps<typeof TabsPrimitive.Root>"},{"name":"TabsList","kind":"component","propsType":"React.ComponentProps<typeof TabsPrimitive.List>"},{"name":"TabsTrigger","kind":"component","propsType":"React.ComponentProps<typeof TabsPrimitive.Trigger>"},{"name":"TabsContent","kind":"component","propsType":"React.ComponentProps<typeof TabsPrimitive.Content>"}]}}