Skip to content

ToggleSwitch-DEMO


Properties


PropertyTypeRequiredDefaultDescription
modelValuebooleanNofalseToggleswitch value
onstringNo'On'Toggleswitch content when value is true
offstringNo'Off'Toggleswitch content when value is false
onForegroundstringNo''Toggleswitch content foreground when value is true
offForegroundstringNo''Toggleswitch content foreground when value is false
borderColorstringNo''
widthnumberNo40
heightnumberNo20
insideContentbooleanNofalse
ringBackgroundstringNo''
switchOnBackgroundstringNo''
disabledbooleanNofalse
themestringNo'global'Theme style. Supports global, light, dark, system, and custom.
langstringNo"global"See the ToggleSwitch lang option.

Events


EventArgumentsDescription
togglevalue

MIT Licensed