@mistong/eui-switch
v0.1.0
Published
An eui switch component
Downloads
6
Readme
USAGE
Install
$ npm i @mistong/eui
demo
import { Switch } from '@mistong/eui';
...
<Switch />
API
|参数|说明|类型|默认值|
|---|----|---|------|
|defaultChecked|初始是否选中|boolen|false
|
|checked|指定当前是否选中|boolen|false|
|onChange|变化时回调函数|Function(checked)|-|
|size|开关大小(default、small)|string|default
|
|checkedChildren|选中时的内容|React Node|-|
|unCheckedChildren|非选中时的内容|React Node|-|
|className|添加自定义class|string|-|
|prefixCls|样式名前缀|string|eui-empty-data
|