{
  "id": "checkbox",
  "name": "Checkbox",
  "level": "atom",
  "status": "stable",
  "purpose": "An on/off choice, with a mixed state for \"select all\".",
  "description": "Tri-state form control. Composes `@radix-ui/react-checkbox` for the ARIA contract (`role=\"checkbox\"`, `aria-checked` including the `mixed` value when indeterminate). Pair with a Label via `htmlFor` → `id`.",
  "role": "input",
  "import": "@rrios-forge/ui/atoms/checkbox",
  "exports": [
    "Checkbox",
    "checkboxVariants",
    "CHECKBOX_SIZES"
  ],
  "source": "packages/ui/src/atoms/checkbox",
  "axes": [
    {
      "axis": "size",
      "part": null,
      "values": [
        "sm",
        "md",
        "lg"
      ],
      "default": "md",
      "meaning": "Ergonomic scale, in three families (control, text, container)."
    },
    {
      "axis": "invalid",
      "part": null,
      "values": [
        "true",
        "false"
      ],
      "default": "false",
      "meaning": "Fails validation: a danger edge, announced as invalid; pair it with an error message."
    }
  ],
  "needs": [
    {
      "need": "Binary toggle / checkbox / radio group",
      "answer": "`Switch` (in `SettingsField` with label) / `Checkbox` / `ChoiceGroup` with `Radio`"
    }
  ],
  "patterns": [],
  "a11yExceptions": [],
  "decisions": [],
  "stories": [
    {
      "name": "Playground",
      "id": "components-atoms-checkbox--playground",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-checkbox--playground",
      "frame": "/iframe.html?id=components-atoms-checkbox--playground&viewMode=story"
    },
    {
      "name": "Sizes",
      "id": "components-atoms-checkbox--sizes",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-checkbox--sizes",
      "frame": "/iframe.html?id=components-atoms-checkbox--sizes&viewMode=story"
    },
    {
      "name": "States",
      "id": "components-atoms-checkbox--states",
      "interaction": false,
      "snapshots": [
        "dark",
        "high-contrast",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-checkbox--states",
      "frame": "/iframe.html?id=components-atoms-checkbox--states&viewMode=story"
    },
    {
      "name": "With label",
      "id": "components-atoms-checkbox--with-label",
      "interaction": false,
      "snapshots": [
        "dark",
        "light"
      ],
      "skipsSnapshot": false,
      "docs": "/?path=/story/components-atoms-checkbox--with-label",
      "frame": "/iframe.html?id=components-atoms-checkbox--with-label&viewMode=story"
    }
  ],
  "storyFile": "tooling/storybook/stories/components/atoms/checkbox.stories.tsx"
}
