Switch

开关

Codesandbox

value = false

Types

Codesandbox

Sizes

Codesandbox

API

Name Description Type Values Default
checked Binding for whether the switch to "on" or not, optional Any false
type Type (color of control), optional String is-white, is-black, is-light, is-dark, is-primary, is-info, is-success, is-warning, is-danger
size Size of switch, optional String is-small, is-medium, is-large
disabled Whether switch is disabled or not, optional Boolean false