Switch
Last updated
Last updated
Renders a boolean input.
View full example: Switch Example
Property
Default
Option
Description
style
-
-
Style for the switch
height
18
number
Height switch
bgColor
#3e50fa
string
Custom colors for the switch track
thumbColor
#fff
string
Color of the foreground switch grip
circleStyle
-
-
Style of the thumbColor
onChange
-
function
Return value switch
switch customize