Switch

Useful for allowing users to toggle boolean options in a form.

Props

Prop
Type
Description
appearancedefault | minimal | negative | positiveThe theming to apply
idStringThe id of the switch
nameStringThe name of the switch
valueStringThe value of the switch
leftTextStringThe left text of the switch
rightTextStringThe right text of the switch
colorTextdefault | muted | primaryThe color text to apply
isCheckedBooleanWhether it is checked or not
onChangeFunctionA function to be called when the value changes

Examples

todo