{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toggle-group",
  "title": "Toggle Group",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/toggle-group/ToggleGroup.tsx",
      "content": "import * as React from 'react'\nimport { cssInterop } from 'react-native-css-interop'\nimport * as Primitive from '@rn-primitives/toggle-group'\nimport { renderTextChildren } from '@/lib/label-children'\nimport { cn } from '@/lib/utils'\n\nexport type ToggleGroupProps = Primitive.RootProps & { className?: string }\nexport const ToggleGroup = React.forwardRef<Primitive.RootRef, ToggleGroupProps>((props, ref) => (\n  <Primitive.Root {...props} ref={ref} className={cn('flex-row flex-wrap gap-[8px]', props.className)} />\n))\nToggleGroup.displayName = 'ToggleGroup'\nexport type ToggleGroupItemProps = Omit<Primitive.ItemProps, 'children'> & {\n  children?: React.ReactNode\n  className?: string\n}\nexport const ToggleGroupItem = React.forwardRef<Primitive.ItemRef, ToggleGroupItemProps>(\n  ({ children, className, ...props }, ref) => {\n    const group = Primitive.useRootContext()\n    const selected = Array.isArray(group.value) ? group.value.includes(props.value) : group.value === props.value\n    return (\n      <Primitive.Item\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          selected && 'bg-secondary',\n          (group.disabled || props.disabled) && 'opacity-50',\n          className,\n        )}\n      >\n        {renderTextChildren(children, 'font-medium')}\n      </Primitive.Item>\n    )\n  },\n)\nToggleGroupItem.displayName = 'ToggleGroupItem'\n\n// The published headless components forward className outside the NativeWind JSX transform.\ncssInterop(Primitive.Root, { className: 'style' })\ncssInterop(Primitive.Item, { className: 'style' })\n",
      "type": "registry:ui",
      "target": "~/components/ui/toggle-group/ToggleGroup.tsx"
    },
    {
      "path": "packages/registry-native/components/toggle-group/index.ts",
      "content": "export * from './ToggleGroup'\n",
      "type": "registry:ui",
      "target": "~/components/ui/toggle-group/index.ts"
    }
  ],
  "dependencies": [
    "react-native-css-interop",
    "@rn-primitives/toggle-group"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/label-children.json"
  ],
  "description": "Composable single or multiple native toggle selection.",
  "categories": [
    "control"
  ]
}