{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "tabs",
  "title": "Tabs",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/tabs/Tabs.tsx",
      "content": "import * as React from 'react'\nimport { cssInterop } from 'react-native-css-interop'\nimport * as Primitive from '@rn-primitives/tabs'\nimport { renderTextChildren } from '@/lib/label-children'\nimport { cn } from '@/lib/utils'\n\nexport type TabsProps = Primitive.RootProps & { className?: string }\nexport const Tabs = React.forwardRef<Primitive.RootRef, TabsProps>((props, ref) => (\n  <Primitive.Root {...props} ref={ref} className={cn('gap-[12px]', props.className)} />\n))\nTabs.displayName = 'Tabs'\nexport type TabsListProps = Primitive.ListProps & { className?: string }\nexport const TabsList = React.forwardRef<Primitive.ListRef, TabsListProps>((props, ref) => (\n  <Primitive.List\n    {...props}\n    ref={ref}\n    className={cn('flex-row flex-wrap gap-[4px] rounded-lg bg-muted p-[4px]', props.className)}\n  />\n))\nTabsList.displayName = 'TabsList'\nexport type TabsTriggerProps = Omit<Primitive.TriggerProps, 'children'> & {\n  children?: React.ReactNode\n  className?: string\n}\nexport const TabsTrigger = React.forwardRef<Primitive.TriggerRef, TabsTriggerProps>(\n  ({ children, className, ...props }, ref) => {\n    const { value } = Primitive.useRootContext()\n    return (\n      <Primitive.Trigger\n        {...props}\n        ref={ref}\n        className={cn(\n          'min-h-[48px] min-w-[80px] max-w-full shrink-0 grow items-center justify-center rounded-md px-[12px] py-[10px]',\n          value === props.value && 'bg-background',\n          props.disabled && 'opacity-50',\n          className,\n        )}\n      >\n        {renderTextChildren(children, 'text-center font-medium')}\n      </Primitive.Trigger>\n    )\n  },\n)\nTabsTrigger.displayName = 'TabsTrigger'\nexport type TabsContentProps = Primitive.ContentProps & { className?: string }\nexport const TabsContent = React.forwardRef<Primitive.ContentRef, TabsContentProps>(\n  ({ children, className, ...props }, ref) => (\n    <Primitive.Content {...props} ref={ref} className={cn('gap-[12px]', className)}>\n      {renderTextChildren(children)}\n    </Primitive.Content>\n  ),\n)\nTabsContent.displayName = 'TabsContent'\n\n// The published headless components forward className outside the NativeWind JSX transform.\ncssInterop(Primitive.Root, { className: 'style' })\ncssInterop(Primitive.List, { className: 'style' })\ncssInterop(Primitive.Trigger, { className: 'style' })\ncssInterop(Primitive.Content, { className: 'style' })\n",
      "type": "registry:ui",
      "target": "~/components/ui/tabs/Tabs.tsx"
    },
    {
      "path": "packages/registry-native/components/tabs/index.ts",
      "content": "export * from './Tabs'\n",
      "type": "registry:ui",
      "target": "~/components/ui/tabs/index.ts"
    }
  ],
  "dependencies": [
    "react-native-css-interop",
    "@rn-primitives/tabs"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/label-children.json"
  ],
  "description": "Controlled in-page content tabs with wrapping, touch-sized triggers and selected state.",
  "categories": [
    "control"
  ]
}