{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "toggle-group", "type": "registry:ui", "dependencies": [ "@base-ui-components/react" ], "registryDependencies": [ "https://jem-ui.vercel.app/r/toggle.json" ], "files": [ { "path": "registry/ui/toggle-group.tsx", "content": "\"use client\";\n\nimport { ToggleGroup as ToggleGroupPrimitive } from \"@base-ui-components/react/toggle-group\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport * as React from \"react\";\nimport { Toggle, toggleVariants } from \"@/components/ui/toggle\";\nimport { cn } from \"@/lib/utils\";\n\nconst ToggleGroupContext = React.createContext<\n VariantProps\n>({\n size: \"default\",\n variant: \"default\",\n});\n\nfunction ToggleGroup({\n className,\n variant,\n size,\n children,\n ...props\n}: React.ComponentProps &\n VariantProps) {\n return (\n \n \n {children}\n \n \n );\n}\n\nfunction ToggleGroupItem({\n className,\n children,\n variant,\n size,\n ...props\n}: React.ComponentProps & VariantProps) {\n const context = React.useContext(ToggleGroupContext);\n\n return (\n \n {children}\n \n );\n}\n\nexport { ToggleGroup, ToggleGroupItem };\n", "type": "registry:ui" } ] }