{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toggle",
  "title": "Toggle",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/toggle/Toggle.tsx",
      "content": "import * as React from 'react'\nimport { cssInterop } from 'react-native-css-interop'\nimport * as Primitive from '@rn-primitives/toggle'\nimport { renderTextChildren } from '@/lib/label-children'\nimport { cn } from '@/lib/utils'\n\nexport type ToggleProps = Omit<Primitive.RootProps, 'children'> & { children?: React.ReactNode; className?: string }\nexport const Toggle = React.forwardRef<Primitive.RootRef, ToggleProps>(({ children, className, ...props }, ref) => (\n  <Primitive.Root\n    {...props}\n    ref={ref}\n    className={cn(\n      'min-h-[48px] min-w-[48px] flex-row items-center justify-center gap-[8px] rounded-md border border-border px-[16px] py-[12px]',\n      props.pressed && 'bg-secondary',\n      props.disabled && 'opacity-50',\n      className,\n    )}\n  >\n    {renderTextChildren(children, 'font-medium')}\n  </Primitive.Root>\n))\nToggle.displayName = 'Toggle'\n\n// The published headless components forward className outside the NativeWind JSX transform.\ncssInterop(Primitive.Root, { className: 'style' })\n",
      "type": "registry:ui",
      "target": "~/components/ui/toggle/Toggle.tsx"
    },
    {
      "path": "packages/registry-native/components/toggle/index.ts",
      "content": "export * from './Toggle'\n",
      "type": "registry:ui",
      "target": "~/components/ui/toggle/index.ts"
    }
  ],
  "dependencies": [
    "react-native-css-interop",
    "@rn-primitives/toggle"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/label-children.json"
  ],
  "description": "Controlled two-state native button with a visible pressed state.",
  "categories": [
    "control"
  ]
}