switch

v0.0.10arrow_drop_down
v0.0.10
v0.0.9
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
69
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
Author: ziven27 Date: 7/11/2020 Desc: 开关的组件,接口和原生 checkbox 接口一摸一样
1 contributor
Install switch as a package?
Copied
npm i @bit/webnovel.read-ui.switch
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right

Switch

just <input type="checkbox" /> nothing else.

Demo

import React from 'react';
import Switch from '@bit/webnovel.read-ui.switch';
import "@bit/webnovel.read-ui.style";

export default function () {
    return (
        <div>
            <Switch />
            <Switch defaultChecked />
            <Switch disabled />
            <Switch disabled defaultChecked />
        </div>
    )
}
Help and resources