{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "checkbox",
  "title": "Checkbox",
  "description": "Native Astro checkboxes for independent choices and form values.",
  "dependencies": [
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/checkbox/checkbox.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = Omit<HTMLAttributes<\"input\">, \"type\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<input\n  type=\"checkbox\"\n  role=\"checkbox\"\n  data-slot=\"checkbox\"\n  class={cn(\"relative inline-flex size-4.5 sm:size-4 shrink-0 appearance-none items-center justify-center rounded-[.25rem] border border-input bg-background not-dark:bg-clip-padding shadow-xs/5 outline-none ring-ring transition-shadow focus-visible:ring-2 focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 disabled:cursor-not-allowed disabled:opacity-64 checked:border-primary checked:bg-primary checked:shadow-none indeterminate:shadow-none dark:not-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 not-disabled:not-checked:not-aria-invalid:inset-shadow-[0_1px_--theme(--color-black/4%)] dark:not-disabled:not-checked:not-aria-invalid:inset-shadow-[0_-1px_--theme(--color-white/6%)] peer\", className)}\n  {...props}\n/>\n\n<style>\n  /*\n    The mark is a masked ::before on the input.\n    Keep opacity and color in this sheet. These rules are unlayered, so they\n    win over Tailwind utilities. A class such as checked:before:opacity-100\n    cannot override opacity: 0, and its before: variant also replaces content.\n  */\n  [data-slot=\"checkbox\"] {\n    color: inherit;\n  }\n\n  [data-slot=\"checkbox\"]::before {\n    content: \"\";\n    position: absolute;\n    inset: 0;\n    margin: auto;\n    width: 14px;\n    height: 14px;\n    opacity: 0;\n    background-color: currentColor;\n    background-repeat: no-repeat;\n    background-position: center;\n    background-size: 14px 14px;\n    -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E\");\n    -webkit-mask-repeat: no-repeat;\n    -webkit-mask-position: center;\n    -webkit-mask-size: 14px 14px;\n    mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E\");\n    mask-repeat: no-repeat;\n    mask-position: center;\n    mask-size: 14px 14px;\n  }\n\n  [data-slot=\"checkbox\"]:checked {\n    color: var(--color-primary-foreground);\n  }\n\n  [data-slot=\"checkbox\"]:checked::before {\n    opacity: 1;\n  }\n\n  [data-slot=\"checkbox\"]:indeterminate {\n    color: var(--color-foreground);\n  }\n\n  [data-slot=\"checkbox\"]:indeterminate::before {\n    opacity: 1;\n    -webkit-mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8h9' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E\");\n    mask-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8h9' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E\");\n  }\n</style>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/checkbox/checkbox.astro"
    },
    {
      "path": "packages/ui/src/components/ui/checkbox/index.ts",
      "content": "export { default as Checkbox } from \"./checkbox.astro\"\n",
      "type": "registry:file",
      "target": "~/src/components/ui/checkbox/index.ts"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "cn": "0.5.2"
    }
  },
  "docs": "https://ui.gnosticai.com/components/checkbox",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
