This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
:: BASE_DOC ::
API
Switch Props
name
type
default
description
required
custom-value
Array
[true, false]
Typescript:Array<SwitchValue>
N
disabled
Boolean
false
-
N
icon
Array
[]
Typescript:string[]
N
label
Array
[]
Typescript:string[]
N
loading
Boolean
false
-
N
size
String
medium
options:small/medium/large
N
style
String
-
-
N
value
String / Number / Boolean
null
Typescript:SwitchValuetype SwitchValue = string | number | boolean。see more ts definition
N
default-value
String / Number / Boolean
undefined
uncontrolled property。Typescript:SwitchValuetype SwitchValue = string | number | boolean。see more ts definition