{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toggle-group", "title": "ToggleGroup", "dependencies": [ "@radix-ui/react-toggle-group@1.1.11", "class-variance-authority@0.7.1" ], "registryDependencies": [ "@birchline/toggle", "@birchline/tokens", "@birchline/utils" ], "files": [ { "path": "src/components/ui/toggle-group.tsx", "content": "import * as React from \"react\"\nimport * as ToggleGroupPrimitive from \"@radix-ui/react-toggle-group\"\nimport { type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"@/lib/utils\"\nimport { toggleVariants } from \"@/components/ui/toggle\"\n\nconst ToggleGroupContext = React.createContext>({\n size: \"default\",\n variant: \"default\",\n})\n\nconst ToggleGroup = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, variant, size, children, ...props }, ref) => (\n \n \n {children}\n \n \n))\nToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName\n\nconst ToggleGroupItem = React.forwardRef<\n React.ComponentRef,\n React.ComponentPropsWithoutRef & VariantProps\n>(({ className, children, variant, size, ...props }, ref) => {\n const context = React.useContext(ToggleGroupContext)\n return (\n \n {children}\n \n )\n})\nToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName\n\nexport { ToggleGroup, ToggleGroupItem }\n", "type": "registry:ui", "target": "components/ui/toggle-group.tsx" } ], "type": "registry:ui" }