{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "tabs", "title": "Tabs", "description": "Polaris-styled Tabs component.", "dependencies": [ "@radix-ui/react-tabs" ], "devDependencies": [ "@shopify/polaris-types" ], "registryDependencies": [ "@polaris-shadcn/theme", "@polaris-shadcn/utils" ], "files": [ { "path": "registry/templates/components/ui/tabs.tsx", "content": "import * as React from \"react\";\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\";\nimport { cn } from \"../../lib/utils\";\n\nconst Tabs = TabsPrimitive.Root;\n\nexport interface TabsListProps\n extends React.ComponentPropsWithoutRef {\n fitted?: boolean;\n}\n\nconst TabsList = React.forwardRef<\n React.ElementRef,\n TabsListProps\n>(({ className, fitted, ...props }, ref) => (\n \n));\nTabsList.displayName = \"TabsList\";\n\nexport type TabsTriggerProps = React.ComponentPropsWithoutRef;\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef,\n TabsTriggerProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsTrigger.displayName = \"TabsTrigger\";\n\nexport type TabsContentProps = React.ComponentPropsWithoutRef;\n\nconst TabsContent = React.forwardRef<\n React.ElementRef,\n TabsContentProps\n>(({ className, ...props }, ref) => (\n \n));\nTabsContent.displayName = \"TabsContent\";\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent };\n", "type": "registry:ui" } ], "type": "registry:ui" }