{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "toggle",
  "title": "Toggle",
  "description": "A button that stays down.",
  "dependencies": [
    "@base-ui/react",
    "class-variance-authority"
  ],
  "registryDependencies": [
    "@afterglow/theme"
  ],
  "files": [
    {
      "path": "registry/terminal/ui/toggle.tsx",
      "content": "\"use client\";\n\nimport { Toggle as TogglePrimitive } from \"@base-ui/react/toggle\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst toggleVariants = cva(\n  \"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-none border border-transparent font-mono font-semibold uppercase tracking-terminal outline-none transition duration-150 ease-terminal focus-visible:outline-2 focus-visible:outline-offset-[3px] focus-visible:outline-phosphor-bright disabled:pointer-events-none disabled:opacity-40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5\",\n  {\n    defaultVariants: { size: \"default\", variant: \"default\" },\n    variants: {\n      size: {\n        default: \"h-9 min-w-9 px-2.5 text-2xs\",\n        lg: \"h-10 min-w-10 px-3 text-1xs\",\n        sm: \"h-8 min-w-8 px-2 text-3xs\",\n      },\n      variant: {\n        default:\n          \"text-muted-foreground hover:bg-accent/60 hover:text-phosphor data-pressed:bg-accent data-pressed:text-phosphor-bright\",\n        outline:\n          \"border-line text-muted-foreground hover:border-line-strong hover:text-phosphor data-pressed:border-phosphor data-pressed:bg-accent data-pressed:text-phosphor-bright\",\n      },\n    },\n  }\n);\n\nfunction Toggle({\n  className,\n  variant,\n  size,\n  ...props\n}: TogglePrimitive.Props & VariantProps<typeof toggleVariants>) {\n  return (\n    <TogglePrimitive\n      className={cn(toggleVariants({ className, size, variant }))}\n      data-slot=\"toggle\"\n      {...props}\n    />\n  );\n}\n\nexport { Toggle, toggleVariants };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}