{
  "_id": "@rc-component/checkbox",
  "maintainers": [
    {
      "name": "zombiej",
      "email": "smith3816@gmail.com"
    },
    {
      "name": "afc163",
      "email": "afc163@gmail.com"
    },
    {
      "name": "madccc",
      "email": "1075746765@qq.com"
    },
    {
      "name": "peachscript",
      "email": "scdzwyxst@gmail.com"
    },
    {
      "name": "chenshuai2144",
      "email": "wasd2144@hotmail.com"
    }
  ],
  "keywords": [
    "react",
    "react-component",
    "react-checkbox",
    "checkbox"
  ],
  "dist-tags": {
    "latest": "2.0.0"
  },
  "_rev": "3-0399b67ee1faff540a060bb189c7fa2e",
  "description": "checkbox ui component for react",
  "readme": "# rc-checkbox\n\n---\n\nCheckbox ui component for react.\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![Codecov][codecov-image]][codecov-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/rc-checkbox.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/rc-checkbox\n[travis-image]: https://img.shields.io/travis/react-component/checkbox/master?style=flat-square\n[travis-url]: https://travis-ci.com/react-component/checkbox\n[github-actions-image]: https://github.com/react-component/checkbox/workflows/CI/badge.svg\n[github-actions-url]: https://github.com/react-component/checkbox/actions\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/checkbox/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/checkbox\n[david-url]: https://david-dm.org/react-component/checkbox\n[david-image]: https://david-dm.org/react-component/checkbox/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/checkbox?type=dev\n[david-dev-image]: https://david-dm.org/react-component/checkbox/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/rc-checkbox.svg?style=flat-square\n[download-url]: https://npmjs.org/package/rc-checkbox\n[bundlephobia-url]: https://bundlephobia.com/package/rc-checkbox\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-checkbox\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\n## Install\n\n[![rc-checkbox](https://nodei.co/npm/rc-checkbox.png)](https://npmjs.org/package/rc-checkbox)\n\n## Usage\n\n```js\nimport checkbox from '@rc-component/checkbox';\n\nexport default () => <checkbox />;\n```\n\n## Compatibility\n\n| [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>IE / Edge | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Firefox | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Chrome | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Safari | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png\" alt=\"Electron\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br>Electron |\n| --- | --- | --- | --- | --- |\n| IE11, Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |\n\n## API\n\n<table class=\"table table-bordered table-striped\">\n  <thead>\n  <tr>\n    <th style=\"width: 100px;\">name</th>\n    <th style=\"width: 50px;\">type</th>\n    <th style=\"width: 50px;\">default</th>\n    <th>description</th>\n  </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td>prefixCls</td>\n      <td>String</td>\n      <td>rc-checkbox</td>\n      <td></td>\n    </tr>\n    <tr>\n      <td>className</td>\n      <td>String</td>\n      <td>''</td>\n      <td>additional class name of root node</td>\n    </tr>\n      <tr>\n      <td>name</td>\n      <td>String</td>\n      <td></td>\n      <td>same with native input checkbox</td>\n    </tr>\n    <tr>\n      <td>checked</td>\n      <td>enum: 0,1,2</td>\n      <td></td>\n      <td></td>\n    </tr>\n    <tr>\n      <td>defaultChecked</td>\n      <td>enum: 0,1,2</td>\n      <td>0</td>\n      <td>same with native input checkbox</td>\n    <tr>\n      <td>onChange</td>\n      <td>Function(e:Event, checked:Number)</td>\n      <td></td>\n      <td>called when checkbox is changed. e is native event, checked is original checked state.</td>\n    </tr>\n  </tbody>\n</table>\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\nOnline demo: http://react-component.github.io/checkbox/\n\n## License\n\nrc-checkbox is released under the MIT license.\n",
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/react-component/checkbox.git"
  },
  "bugs": {
    "url": "http://github.com/react-component/checkbox/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "@rc-component/checkbox",
      "version": "1.0.0",
      "keywords": [
        "react",
        "react-component",
        "react-checkbox",
        "checkbox"
      ],
      "license": "MIT",
      "_id": "@rc-component/checkbox@1.0.0",
      "maintainers": [
        {
          "name": "zombiej",
          "email": "smith3816@gmail.com"
        },
        {
          "name": "afc163",
          "email": "afc163@gmail.com"
        },
        {
          "name": "madccc",
          "email": "1075746765@qq.com"
        },
        {
          "name": "peachscript",
          "email": "scdzwyxst@gmail.com"
        },
        {
          "name": "chenshuai2144",
          "email": "wasd2144@hotmail.com"
        }
      ],
      "homepage": "https://react-component.github.io/checkbox",
      "bugs": {
        "url": "http://github.com/react-component/checkbox/issues"
      },
      "dist": {
        "shasum": "32f2e69e23547a81359bfa5b9c5560d549bb273e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@rc-component/checkbox/-/checkbox-1.0.0.tgz",
        "fileCount": 8,
        "integrity": "sha512-OvOsRsbCQvCQGafq429AuI6HGKtNdBRorR7EK0VF3X2ASMHQ6XzfgKGi/kf/FZ3VjPkvvzME7tMXayAD4J6wYg==",
        "signatures": [
          {
            "sig": "MEQCIDzuAwujIKzAVzEe/ZMUTBm3+M2JdhxzO3LATJDPE8klAiAOP/p4d8eevuSO8hrPrqrCYeiAcbLbiOyk8BsFPWgpqw==",
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
          }
        ],
        "unpackedSize": 17945
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "gitHead": "11a6251a232788ba9981ba7a558ce8efb86c4dd0",
      "scripts": {
        "tsc": "bunx tsc --noEmit",
        "lint": "eslint src/ --ext .tsx,.ts",
        "test": "jest",
        "build": "dumi build",
        "start": "dumi dev",
        "compile": "father build && lessc assets/index.less assets/index.css",
        "prepare": "husky install && dumi setup",
        "coverage": "jest --coverage",
        "gh-pages": "npm run build && father doc deploy -d dist",
        "prepublishOnly": "npm run compile && rc-np"
      },
      "typings": "es/index.d.ts",
      "_npmUser": {
        "name": "zombiej",
        "email": "smith3816@gmail.com"
      },
      "repository": {
        "url": "git+ssh://git@github.com/react-component/checkbox.git",
        "type": "git"
      },
      "_npmVersion": "10.9.2",
      "description": "checkbox ui component for react",
      "directories": {},
      "lint-staged": {
        "*.ts?(x)": [
          "prettier --parser=typescript --write"
        ],
        "*.{js,jsx,less,md,json}": [
          "prettier --write"
        ]
      },
      "_nodeVersion": "22.15.1",
      "dependencies": {
        "classnames": "^2.3.2",
        "@rc-component/util": "^1.3.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "dumi": "^2.0.12",
        "jest": "^29.3.1",
        "less": "^4.2.0",
        "husky": "9.0.5",
        "react": "^18.2.0",
        "eslint": "^8.55.0",
        "father": "^4.1.1",
        "ts-node": "^10.9.1",
        "coveralls": "^3.0.6",
        "react-dom": "^18.2.0",
        "typescript": "^5.2.2",
        "@types/jest": "^29.2.4",
        "@umijs/test": "^4.0.34",
        "lint-staged": "^15.1.0",
        "@types/react": "^18.0.26",
        "@umijs/fabric": "^4.0.1",
        "@rc-component/np": "^1.0.0",
        "@types/react-dom": "^18.0.9",
        "@types/classnames": "^2.3.1",
        "eslint-plugin-jest": "^27.6.0",
        "eslint-plugin-unicorn": "^50.0.1",
        "@testing-library/react": "^14.1.2",
        "jest-environment-jsdom": "^29.3.1",
        "@testing-library/jest-dom": "^6.1.5",
        "@rc-component/father-plugin": "^2.1.3",
        "@testing-library/user-event": "^14.4.3"
      },
      "peerDependencies": {
        "react": ">=16.9.0",
        "react-dom": ">=16.9.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/checkbox_1.0.0_1758013473583_0.9836643976120176",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "1.0.1": {
      "name": "@rc-component/checkbox",
      "version": "1.0.1",
      "keywords": [
        "react",
        "react-component",
        "react-checkbox",
        "checkbox"
      ],
      "license": "MIT",
      "_id": "@rc-component/checkbox@1.0.1",
      "maintainers": [
        {
          "name": "zombiej",
          "email": "smith3816@gmail.com"
        },
        {
          "name": "afc163",
          "email": "afc163@gmail.com"
        },
        {
          "name": "madccc",
          "email": "1075746765@qq.com"
        },
        {
          "name": "peachscript",
          "email": "scdzwyxst@gmail.com"
        },
        {
          "name": "chenshuai2144",
          "email": "wasd2144@hotmail.com"
        }
      ],
      "homepage": "https://react-component.github.io/checkbox",
      "bugs": {
        "url": "http://github.com/react-component/checkbox/issues"
      },
      "dist": {
        "shasum": "d9ff0e67e5e55be0cad597083d5e9d972cc4e567",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@rc-component/checkbox/-/checkbox-1.0.1.tgz",
        "fileCount": 8,
        "integrity": "sha512-08yTH8m+bSm8TOqbybbJ9KiAuIATti6bDs2mVeSfu4QfEnyeF6X0enHVvD1NEAyuBWEAo56QtLe++MYs2D9XiQ==",
        "signatures": [
          {
            "sig": "MEUCIQCKE7V6erxj2Yabqvh2J1vUxXHpXrhULxiD6N3Xu1EzqQIgO0BYhvqgOcS9+r+QyjlEpBz9xedSAKDBU88R3YWRxog=",
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
          }
        ],
        "unpackedSize": 17802
      },
      "main": "lib/index.js",
      "module": "es/index.js",
      "gitHead": "66acc45f41a0de99908d75275b2bd33859ea208d",
      "scripts": {
        "tsc": "bunx tsc --noEmit",
        "lint": "eslint src/ --ext .tsx,.ts",
        "test": "jest",
        "build": "dumi build",
        "start": "dumi dev",
        "compile": "father build && lessc assets/index.less assets/index.css",
        "prepare": "husky install && dumi setup",
        "coverage": "jest --coverage",
        "gh-pages": "npm run build && father doc deploy -d dist",
        "prepublishOnly": "npm run compile && rc-np"
      },
      "typings": "es/index.d.ts",
      "_npmUser": {
        "name": "afc163",
        "email": "afc163@gmail.com"
      },
      "repository": {
        "url": "git+ssh://git@github.com/react-component/checkbox.git",
        "type": "git"
      },
      "_npmVersion": "11.6.0",
      "description": "checkbox ui component for react",
      "directories": {},
      "lint-staged": {
        "*.ts?(x)": [
          "prettier --parser=typescript --write"
        ],
        "*.{js,jsx,less,md,json}": [
          "prettier --write"
        ]
      },
      "_nodeVersion": "22.8.0",
      "dependencies": {
        "clsx": "^2.1.1",
        "@rc-component/util": "^1.3.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "dumi": "^2.0.12",
        "jest": "^29.3.1",
        "less": "^4.2.0",
        "husky": "9.0.5",
        "react": "^18.2.0",
        "eslint": "^8.55.0",
        "father": "^4.1.1",
        "ts-node": "^10.9.1",
        "react-dom": "^18.2.0",
        "typescript": "^5.2.2",
        "@types/jest": "^29.2.4",
        "@types/node": "^24.5.2",
        "@umijs/test": "^4.0.34",
        "lint-staged": "^15.1.0",
        "@types/react": "^18.0.26",
        "@umijs/fabric": "^4.0.1",
        "@rc-component/np": "^1.0.0",
        "@types/react-dom": "^18.0.9",
        "eslint-plugin-jest": "^27.6.0",
        "eslint-plugin-unicorn": "^50.0.1",
        "@testing-library/react": "^14.1.2",
        "jest-environment-jsdom": "^29.3.1",
        "@testing-library/jest-dom": "^6.1.5",
        "@rc-component/father-plugin": "^2.1.3"
      },
      "peerDependencies": {
        "react": ">=16.9.0",
        "react-dom": ">=16.9.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/checkbox_1.0.1_1764299671244_0.13970203243594104",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "2.0.0": {
      "name": "@rc-component/checkbox",
      "version": "2.0.0",
      "description": "checkbox ui component for react",
      "keywords": [
        "react",
        "react-component",
        "react-checkbox",
        "checkbox"
      ],
      "homepage": "https://react-component.github.io/checkbox",
      "bugs": {
        "url": "http://github.com/react-component/checkbox/issues"
      },
      "repository": {
        "type": "git",
        "url": "git+ssh://git@github.com/react-component/checkbox.git"
      },
      "license": "MIT",
      "main": "lib/index.js",
      "module": "es/index.js",
      "typings": "es/index.d.ts",
      "scripts": {
        "build": "dumi build",
        "compile": "father build && lessc assets/index.less assets/index.css",
        "coverage": "jest --coverage",
        "gh-pages": "npm run build && father doc deploy -d dist",
        "lint": "eslint src/ --ext .tsx,.ts",
        "prepare": "husky install && dumi setup",
        "prepublishOnly": "npm run compile && rc-np",
        "start": "dumi dev",
        "test": "jest",
        "tsc": "bunx tsc --noEmit"
      },
      "lint-staged": {
        "*.{js,jsx,less,md,json}": [
          "prettier --write"
        ],
        "*.ts?(x)": [
          "prettier --parser=typescript --write"
        ]
      },
      "dependencies": {
        "@rc-component/util": "^1.3.0",
        "clsx": "^2.1.1"
      },
      "devDependencies": {
        "@rc-component/father-plugin": "^2.1.3",
        "@rc-component/np": "^1.0.0",
        "@testing-library/jest-dom": "^6.1.5",
        "@testing-library/react": "^14.1.2",
        "@types/jest": "^29.2.4",
        "@types/node": "^24.5.2",
        "@types/react": "^18.0.26",
        "@types/react-dom": "^18.0.9",
        "@umijs/fabric": "^4.0.1",
        "@umijs/test": "^4.0.34",
        "dumi": "^2.0.12",
        "eslint": "^8.55.0",
        "eslint-plugin-jest": "^27.6.0",
        "eslint-plugin-unicorn": "^50.0.1",
        "father": "^4.1.1",
        "husky": "9.0.5",
        "jest": "^29.3.1",
        "jest-environment-jsdom": "^29.3.1",
        "less": "^4.2.0",
        "lint-staged": "^15.1.0",
        "react": "^18.2.0",
        "react-dom": "^18.2.0",
        "ts-node": "^10.9.1",
        "typescript": "^5.2.2"
      },
      "peerDependencies": {
        "react": ">=16.9.0",
        "react-dom": ">=16.9.0"
      },
      "gitHead": "28da2ca52bfec62eab214847710c92f50f2a7a84",
      "_id": "@rc-component/checkbox@2.0.0",
      "_nodeVersion": "22.15.1",
      "_npmVersion": "11.7.0",
      "dist": {
        "integrity": "sha512-3CXGPpAR9gsPKeO2N78HAPOzU30UdemD6HGJoWVJOpa6WleaGB5kzZj3v6bdTZab31YuWgY/RxV3VKPctn0DwQ==",
        "shasum": "90e0b30c276e507a5ab9942f626fe4572f5e4ff9",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@rc-component/checkbox/-/checkbox-2.0.0.tgz",
        "fileCount": 8,
        "unpackedSize": 16862,
        "signatures": [
          {
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U",
            "sig": "MEUCIQDJdqbUXKpbIKzMnUkUsNAo6m7htl/1XtP3Sah8Vukq2wIgGt/yYVMKRRbQkikkjNJcsiiZPwM8FL3QcG9r9ocmt4w="
          }
        ]
      },
      "_npmUser": {
        "name": "zombiej",
        "email": "smith3816@gmail.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "zombiej",
          "email": "smith3816@gmail.com"
        },
        {
          "name": "afc163",
          "email": "afc163@gmail.com"
        },
        {
          "name": "madccc",
          "email": "1075746765@qq.com"
        },
        {
          "name": "peachscript",
          "email": "scdzwyxst@gmail.com"
        },
        {
          "name": "chenshuai2144",
          "email": "wasd2144@hotmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages-npm-production",
        "tmp": "tmp/checkbox_2.0.0_1769658605676_0.9808415919183502"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "@rc-component/checkbox",
  "time": {
    "created": "2025-09-16T09:04:33.478Z",
    "modified": "2026-05-20T01:37:25.451Z",
    "1.0.0": "2025-09-16T09:04:33.821Z",
    "1.0.1": "2025-11-28T03:14:31.437Z",
    "2.0.0": "2026-01-29T03:50:05.801Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://react-component.github.io/checkbox"
}