Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

uxcore-switch

0.1.14 • Public • Published

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 状态

install

npm i uxcore-switch

Downloadsweekly downloads

59

version

0.1.14

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability