{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"toggle","type":"registry:ui","dependencies":["@base-ui/react","class-variance-authority","cn"],"files":[{"path":"toggle.tsx","type":"registry:ui","content":"\"use client\"\n\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { cn } from \"cn\"\n\nconst toggleVariants = cva(\n  \"cn-toggle group/toggle inline-flex items-center justify-center whitespace-nowrap outline-none hover:bg-muted focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n  {\n    variants: {\n      variant: {\n        default: \"cn-toggle-variant-default\",\n        outline: \"cn-toggle-variant-outline\",\n      },\n      size: {\n        default: \"cn-toggle-size-default\",\n        sm: \"cn-toggle-size-sm\",\n        lg: \"cn-toggle-size-lg\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Toggle({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  ...props\n}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {\n  return (\n    <TogglePrimitive\n      data-slot=\"toggle\"\n      className={cn(toggleVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Toggle, toggleVariants }","target":"components/ui/toggle.tsx"}]}