{"_id":"@rc-component/segmented","_rev":"4537628","name":"@rc-component/segmented","description":"React segmented controls used in ant.design","dist-tags":{"latest":"1.3.0"},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"time":{"modified":"2026-04-09T15:01:57.000Z","created":"2025-01-16T08:10:59.254Z","1.3.0":"2025-12-18T04:02:17.770Z","1.2.3":"2025-11-25T03:51:17.322Z","1.2.2":"2025-09-10T08:48:03.545Z","1.2.1":"2025-07-03T03:57:52.964Z","1.2.0":"2025-07-02T08:37:09.742Z","1.1.0":"2025-01-24T09:55:09.202Z","1.0.0":"2025-01-16T08:10:59.254Z"},"users":{},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"versions":{"1.3.0":{"name":"@rc-component/segmented","version":"1.3.0","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","@rc-component/util":"^1.3.0","clsx":"^2.1.1","@rc-component/motion":"^1.1.4"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^6.9.1","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/jest":"^29.2.4","@types/node":"^24.5.2","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"publishConfig":{"access":"public"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.3.0","gitHead":"0a35404d91ac9a5090b0947c44bcc6787174019d","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"shasum":"46f5e3f34630a246e02fe20fd501ed448eb64c17","size":8813,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.3.0.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.3.0_1766030537625_0.002121856865509253"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-12-18T04:02:17.770Z","publish_time":1766030537770,"_source_registry_name":"default","_cnpm_publish_time":1766030537770},"1.2.3":{"name":"@rc-component/segmented","version":"1.2.3","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","@rc-component/util":"^1.3.0","clsx":"^2.1.1","@rc-component/motion":"^1.1.4"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/jest":"^29.2.4","@types/node":"^24.5.2","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.2.3","gitHead":"6fc03b2582e70eb20bf86de93535d68e5de883bf","_nodeVersion":"22.8.0","_npmVersion":"11.6.0","dist":{"shasum":"3a1b8d5daa2ecba6876062abb01424bbd512ef79","size":8789,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.2.3.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.2.3_1764042677056_0.6777861327272314"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-25T03:51:17.322Z","publish_time":1764042677322,"_source_registry_name":"default","_cnpm_publish_time":1764042677322},"1.2.2":{"name":"@rc-component/segmented","version":"1.2.2","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","classnames":"^2.2.1","rc-motion":"^2.4.4","@rc-component/util":"^1.3.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.2.4","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","coveralls":"^3.0.6","cross-env":"^7.0.3","cssstyle":"^2.3.0","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.2.2","gitHead":"46aa19e116405622c4dabfc50c2fc2b102969a96","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"f95926340587f170551bfdade9c618f28c6bbd2e","size":8809,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.2.2.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.2.2_1757494083378_0.47275362008847455"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-10T08:48:03.545Z","publish_time":1757494083545,"_source_registry_name":"default","_cnpm_publish_time":1757494083545},"1.2.1":{"name":"@rc-component/segmented","version":"1.2.1","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","classnames":"^2.2.1","rc-motion":"^2.4.4","@rc-component/util":"^1.1.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.2.4","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","coveralls":"^3.0.6","cross-env":"^7.0.3","cssstyle":"^2.3.0","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.2.1","gitHead":"13dcd71b941c0ed37cdbcf1a087170af94f4838c","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"593aca445e24cf22ae1d6a3c04cf9a45b5e1a1be","size":8814,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.2.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com","actor":{"name":"zombiej","email":"smith3816@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.2.1_1751515072739_0.3188225838146175"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-03T03:57:52.964Z","publish_time":1751515072964,"_source_registry_name":"default","_cnpm_publish_time":1751515072964},"1.2.0":{"name":"@rc-component/segmented","version":"1.2.0","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","classnames":"^2.2.1","rc-motion":"^2.4.4","@rc-component/util":"^1.1.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.2.4","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","coveralls":"^3.0.6","cross-env":"^7.0.3","cssstyle":"^2.3.0","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.2.0","gitHead":"c578293caf02bd9e00f36c8722e4957902a01006","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"5fd5d026f0de061eea2dc52adfe2fccd9b6d4eb4","size":8840,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.2.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com","actor":{"name":"zombiej","email":"smith3816@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.2.0_1751445429584_0.4385155284919804"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-02T08:37:09.742Z","publish_time":1751445429742,"_source_registry_name":"default","_cnpm_publish_time":1751445429742},"1.1.0":{"name":"@rc-component/segmented","version":"1.1.0","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","classnames":"^2.2.1","rc-motion":"^2.4.4","@rc-component/util":"^1.1.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@rc-component/np":"^1.0.0","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.2.4","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","coveralls":"^3.0.6","cross-env":"^7.0.3","cssstyle":"^2.3.0","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.1.0","gitHead":"17b4ba309c51068888bcf511bc52e564fbfe3df4","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"18769d1218b6d0f54d1f21176df4b0119337412c","size":8595,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.1.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.1.0_1737712509045_0.20260942105851698"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-24T09:55:09.202Z","publish_time":1737712509202,"_source_registry_name":"default","_cnpm_publish_time":1737712509202},"1.0.0":{"name":"@rc-component/segmented","version":"1.0.0","description":"React segmented controls used in ant.design","keywords":["react","react-component","react-segmented","react-segmented-controls","segmented controls","antd","ant-design"],"main":"./lib/index","module":"./es/index","types":"./es/index.d.ts","homepage":"https://react-component.github.io/segmented","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/segmented.git"},"bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT","scripts":{"start":"dumi dev","type:check":"tsc --noEmit","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","test":"jest","coverage":"jest --coverage","prepare":"husky install"},"dependencies":{"@babel/runtime":"^7.11.1","classnames":"^2.2.1","rc-motion":"^2.4.4","@rc-component/util":"^1.1.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.1","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^14.2.1","@testing-library/user-event":"^14.5.2","@types/classnames":"^2.2.9","@types/jest":"^29.2.4","@types/react":"^18.3.11","@types/react-dom":"^18.3.1","@umijs/fabric":"^3.0.0","@umijs/test":"^4.0.36","coveralls":"^3.0.6","cross-env":"^7.0.3","cssstyle":"^2.3.0","dumi":"^2.1.2","eslint":"^7.0.0","father":"^4.1.1","gh-pages":"^3.1.0","husky":"^8.0.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","less":"^3.10.3","np":"^7.0.0","prettier":"^2.0.5","pretty-quick":"^3.0.0","react":"^18.0.0","react-dom":"^18.0.0","ts-node":"^10.9.1","typescript":"^5.3.0"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/segmented@1.0.0","gitHead":"bdc6c153a4c7bcd582e09373777e8e1b010cb09e","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"3357474a89a78d1d1406491f77f19837b59c82aa","size":8584,"noattachment":false,"key":"/@rc-component/segmented/-/@rc-component/segmented-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/segmented/download/@rc-component/segmented-1.0.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segmented_1.0.0_1737015059072_0.22329329800128161"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-16T08:10:59.254Z","publish_time":1737015059254,"_source_registry_name":"default","_cnpm_publish_time":1737015059254}},"readme":"# @rc-component/segmented\n\n[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url] [![dumi](https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square)](https://github.com/umijs/dumi) [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/segmented.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/segmented\n[github-actions-image]: https://github.com/react-component/segmented/actions/workflows/main.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/segmented/actions/workflows/main.yml\n[codecov-image]: https://codecov.io/gh/react-component/segmented/branch/master/graph/badge.svg\n[codecov-url]: https://codecov.io/gh/react-component/segmented/branch/master\n[download-image]: https://img.shields.io/npm/dm/@rc-component/segmented.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/segmented\n[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/segmented\n[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/segmented\n\nReact Segmented Control.\n\n![](https://gw.alipayobjects.com/mdn/rms_50855f/afts/img/A*bmGGQpnWs0oAAAAAAAAAAAAAARQnAQ)\n\n## Live Demo\n\nhttps://react-component.github.io/segmented/\n\n## Install\n\n[![@rc-component/segmented](https://nodei.co/npm/@rc-component/segmented.png)](https://npmjs.org/package/@rc-component/segmented)\n\n## Usage\n\n```js\nimport Segmented from '@rc-component/segmented';\nimport '@rc-component/segmented/assets/index.css'; // import '@rc-component/segmented/assets/index.less';\nimport { render } from 'react-dom';\n\nrender(\n  <Segmented\n    options={['Antd', 'Antv', 'Egg.js']}\n    onChange={(value) => handleValueChange(value)}\n  />,\n  mountNode,\n);\n```\n\n## API\n\nPlease note that **onChange** API\n changed on v2.0.0+\n\n| Property     | Type                                                           | Default      | Description                        |\n| --------- | --------- | --------- | --------- |\n| prefixCls    | string                                                         | `rc-segmented` | prefixCls of this component |\n| className    | string                                                         | ''           | additional class name of segmented |\n| style        | React.CSSProperties                                            |              | style properties of segmented      |\n| options      | Array<string \\| number \\| [SegmentedOption](#SegmentedOption)> | []           | options for choices                |\n| value        | string \\| number                                               |              | value of segmented                 |\n| defaultValue | string \\| number                                               |              | defaultValue of segmented          |\n| value | string \\| number                                               |              | currently selected value of segmented          |\n| onChange     | (value: string \\| number) => void                                               |              | defaultValue of segmented          |\n| disabled     | boolean                                                        | false        | disabled status of segmented       |\n\n### SegmentedOption\n\n| Property  | Type      | Default | Description                               |\n| --------- | --------- | --------- | --------- |\n| label     | ReactNode |         | label of segmented option                 |\n| value     | string \\| number   |  | value of segmented option |\n| className | string    | ''      | additional class name of segmented option |\n| disabled  | boolean   | false   | disabled status of segmented option       |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## License\n\n@rc-component/segmented is released under the MIT license.\n","_attachments":{},"homepage":"https://react-component.github.io/segmented","bugs":{"url":"http://github.com/react-component/segmented/issues"},"license":"MIT"}