@mistong/eui-switch

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i @mistong/eui-switch

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

44 kB

Total Files

12

Last publish

Collaborators

  • caiyue823
  • ejayyoung
  • koshi
  • tellmepz
  • yukap