{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "collapsible",
  "title": "Collapsible",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/collapsible/Collapsible.tsx",
      "content": "import * as React from 'react'\nimport { cssInterop } from 'react-native-css-interop'\nimport * as Primitive from '@rn-primitives/collapsible'\nimport { renderTextChildren } from '@/lib/label-children'\nimport { cn } from '@/lib/utils'\n\nexport const Collapsible = Primitive.Root\nexport type CollapsibleProps = Primitive.RootProps\nexport type CollapsibleTriggerProps = Omit<Primitive.TriggerProps, 'children'> & {\n  children?: React.ReactNode\n  className?: string\n}\nexport const CollapsibleTrigger = React.forwardRef<Primitive.TriggerRef, CollapsibleTriggerProps>(\n  ({ className, children, ...props }, ref) => (\n    <Primitive.Trigger\n      {...props}\n      ref={ref}\n      className={cn(\n        'min-h-[48px] flex-row items-center gap-[8px] rounded-md border border-border px-[16px] py-[12px]',\n        props.disabled && 'opacity-50',\n        className,\n      )}\n    >\n      {renderTextChildren(children, 'font-medium')}\n    </Primitive.Trigger>\n  ),\n)\nCollapsibleTrigger.displayName = 'CollapsibleTrigger'\nexport type CollapsibleContentProps = Primitive.ContentProps & { className?: string }\nexport const CollapsibleContent = React.forwardRef<Primitive.ContentRef, CollapsibleContentProps>(\n  ({ className, children, ...props }, ref) => (\n    <Primitive.Content\n      {...props}\n      ref={ref}\n      className={cn('mt-[8px] gap-[8px] rounded-md border border-border p-[16px]', className)}\n    >\n      {renderTextChildren(children)}\n    </Primitive.Content>\n  ),\n)\nCollapsibleContent.displayName = 'CollapsibleContent'\n\n// The published headless components forward className outside the NativeWind JSX transform.\ncssInterop(Primitive.Root, { className: 'style' })\ncssInterop(Primitive.Trigger, { className: 'style' })\ncssInterop(Primitive.Content, { className: 'style' })\n",
      "type": "registry:ui",
      "target": "~/components/ui/collapsible/Collapsible.tsx"
    },
    {
      "path": "packages/registry-native/components/collapsible/index.ts",
      "content": "export * from './Collapsible'\n",
      "type": "registry:ui",
      "target": "~/components/ui/collapsible/index.ts"
    }
  ],
  "dependencies": [
    "react-native-css-interop",
    "@rn-primitives/collapsible"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/label-children.json"
  ],
  "description": "Expandable native content with an explicit disclosure trigger.",
  "categories": [
    "layout"
  ]
}