1.0.6 • Published 4 years ago

react-custom-switch v1.0.6

Weekly downloads
7
License
ISC
Repository
github
Last release
4 years ago

react-custom-switch

react定制化switchswitch

usage

npm i react-custom-switch -S
import Switch from 'react-custom-switch';

render() {
    return (
        <Switch {...switchprops} />
    )
}

props

dataSource: 传入的配置数组 {label: string, value: string | number} defaultValue: 默认值 onChange: 回调函数 className: 个人定制化样式

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago