React segmented controls used in ant.design
npm install dw-neit-rc-segmented[![NPM version][npm-image]][npm-url] [![npm download][download-image]][download-url]  [![build status][github-actions-image]][github-actions-url] [![Codecov][codecov-image]][codecov-url] [![bundle size][bundlephobia-image]][bundlephobia-url]
[npm-image]: http://img.shields.io/npm/v/dw-neit-rc-segmented.svg?style=flat-square
[npm-url]: http://npmjs.org/package/dw-neit-rc-segmented
[github-actions-image]: https://github.com/react-component/segmented/workflows/CI/badge.svg
[github-actions-url]: https://github.com/react-component/segmented/actions
[codecov-image]: https://codecov.io/gh/react-component/segmented/branch/master/graph/badge.svg
[codecov-url]: https://codecov.io/gh/react-component/segmented/branch/master
[download-image]: https://img.shields.io/npm/dm/dw-neit-rc-segmented.svg?style=flat-square
[download-url]: https://npmjs.org/package/dw-neit-rc-segmented
[bundlephobia-url]: https://bundlephobia.com/package/dw-neit-rc-segmented
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/dw-neit-rc-segmented
React Segmented Control.

https://react-component.github.io/segmented/

``js
import Segmented from 'dw-neit-rc-segmented';
import 'dw-neit-rc-segmented/assets/index.css'; // import 'dw-neit-rc-segmented/asssets/index.less';
import { render } from 'react-dom';
render(
onChange={(value) => handleValueChange(value)}
/>,
mountNode,
);
`
Please note that onChange API
changed on v2.0.0+
| Property | Type | Default | Description |
| --------- | --------- | --------- | --------- |
| prefixCls | string | dw-neit-rc-segmented | prefixCls of this component |
| className | string | '' | additional class name of segmented |
| style | React.CSSProperties | | style properties of segmented |
| options | Array
| value | string \| number | | value of segmented |
| defaultValue | string \| number | | defaultValue of segmented |
| value | string \| number | | currently selected value of segmented |
| onChange | (value: string \| number) => void | | defaultValue of segmented |
| disabled | boolean | false | disabled status of segmented |
| Property | Type | Default | Description |
| --------- | --------- | --------- | --------- |
| label | ReactNode | | label of segmented option |
| value | string \| number | | value of segmented option |
| className | string | '' | additional class name of segmented option |
| disabled | boolean | false | disabled status of segmented option |
```
npm install
npm start
dw-neit-rc-segmented is released under the MIT license.