{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "gummy-radix-toggle",
  "type": "registry:ui",
  "title": "Gummy Toggle · Radix UI",
  "description": "Gummy Toggle behavior implemented with Radix UI.",
  "registryDependencies": [
    "https://gummyui.dev/r/gummy-base.json",
    "https://gummyui.dev/r/gummy-core-styles.json",
    "https://gummyui.dev/r/gummy-primitives-styles.json",
    "https://gummyui.dev/r/gummy-radix-compat.json"
  ],
  "dependencies": [
    "@radix-ui/react-toggle@1.1.18"
  ],
  "files": [
    {
      "path": "components/ui/GummyToggle.tsx",
      "type": "registry:ui",
      "content": "\"use client\";\n\nimport * as Toggle from \"@radix-ui/react-toggle\";\nimport * as React from \"react\";\n\nfunction joinClassNames(...values: Array<string | false | null | undefined>) {\n  return values.filter(Boolean).join(\" \");\n}\n\nexport type GummyToggleProps = React.ComponentPropsWithoutRef<typeof Toggle.Root> & {\n  variant?: \"quiet\" | \"fruit\";\n};\n\nexport const GummyToggle = React.forwardRef<\n  React.ElementRef<typeof Toggle.Root>,\n  GummyToggleProps\n>(function GummyToggle(\n  { variant = \"quiet\", className, children, ...props },\n  ref,\n) {\n  return (\n    <Toggle.Root\n      {...props}\n      ref={ref}\n      className={joinClassNames(\"gummy-toggle\", className)}\n      data-variant={variant}\n    >\n      <span className=\"gummy-toggle__pool\" aria-hidden=\"true\" />\n      <span className=\"gummy-toggle__content\">{children}</span>\n    </Toggle.Root>\n  );\n});\n\nGummyToggle.displayName = \"GummyToggle\";\n"
    }
  ]
}
