Wondering what’s next for npm?Check out our public roadmap! »

    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

    34

    Version

    0.1.14

    License

    MIT

    Unpacked Size

    24.2 kB

    Total Files

    20

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar