Switches are binary inputs that can be either on or off. They are used to toggle between two states. This is an example of a thin style switch.
Show codeHide code
Switches can have a sublabel. use the sublabel
prop to set the sublabel text and modify the swicth layout.
Show codeHide code
Name
Type
Default
color
Main color of the switch.
Show exampleHide example
label
Accessible label of the switch.
Show exampleHide example
id
The form input identifier.
Show exampleHide example
sublabel
The sublabel of the switch.
Show exampleHide example
Switches are binary inputs that can be either on or off. They are used to toggle between two states. This is an example of a ball style switch.
Show codeHide code
Switches can have a sublabel. use the sublabel
prop to set the sublabel text and modify the swicth layout.
Show codeHide code
Name
Type
Default
color
Main color of the switch.
Show exampleHide example
label
Accessible label for the switch.
Show exampleHide example
id
The form input identifier.
Show exampleHide example
sublabel
The sublabel of the switch.