{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "shadcn checkbox with a pixel check.",
  "dependencies": [
    "cn",
    "radix-ui"
  ],
  "registryDependencies": [
    "@ui95/theme",
    "@ui95/pixel-glyphs"
  ],
  "files": [
    {
      "path": "components/ui/checkbox.tsx",
      "content": "\"use client\"\n\nimport { cn } from \"cn\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\nimport * as React from \"react\"\n\nimport { CheckGlyph, MinusGlyph } from \"@/components/ui/pixel-glyphs\"\n\nfunction Checkbox({\n  className,\n  ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"peer relative flex size-5 shrink-0 items-center justify-center pixel-border border-border well outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:text-muted-foreground aria-invalid:border-destructive\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"group/indicator grid place-content-center text-well-fill\"\n      >\n        <CheckGlyph className=\"group-data-[state=indeterminate]/indicator:hidden\" />\n        <MinusGlyph className=\"hidden group-data-[state=indeterminate]/indicator:block\" />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "sounds": {
      "checkbox.on": {
        "note": "0.2 / 2 ms pip, 2.25 kHz square",
        "layers": [
          {
            "wave": "square",
            "frequency": 2250,
            "attack": 0.0002,
            "decay": 0.002,
            "gain": 0.15
          }
        ]
      },
      "checkbox.off": {
        "note": "0.2 / 2 ms pip, 1.28 kHz square, quieter",
        "layers": [
          {
            "wave": "square",
            "frequency": 1280,
            "attack": 0.0002,
            "decay": 0.002,
            "gain": 0.09
          }
        ]
      }
    }
  },
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
