Skip to content
Switch Component based on React
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
src
style
tests
.eslintrc.json
.gitignore
.npmignore
.travis.yml
.yo-rc.json
HISTORY.md
README.md
index.html
package.json
webpack.custom.js

README.md


uxcore-switch Dependency Status devDependency Status

TL;DR

uxcore-switch ui component for react

setup develop environment

$ git clone https://github.com/uxcore/uxcore-switch
$ cd uxcore-switch
$ npm install
$ gulp server

Usage

demo

http://uxcore.github.io/

API

Props

配置项 类型 必填 默认值 功能/备注
prefixCls string optional 'kuma-switch' 类名前缀
className string optional - 额外类名
checked boolean optional false 是否被选中
defaultChecked boolean optional false 非受限模式
onChange Function(checked) required 变化时发生
checkedChildren string optional - 选中时的文案
unCheckedChildren string optional - 未选中时的文案
loading bool optional false loading 状态
You can’t perform that action at this time.