Switch

Switches toggle the state of a single setting on or off.

code
Expend code

#Label

code
Expend code

#Checked & disable

code
Expend code

# color

code
Expend code

Switch

the properties of a switch component that allow the user to turn a single setting on or off.

PropTypeDefaultDescription
classNamestring-CSS class for additional styling.
idstring-A unique identifier to associate a switch with a label.
checkedbooleanfalseControls whether the switch is checked.
defaultCheckedbooleanfalseSets the initial check state of the switch.
disabledbooleanfalseSets whether the switch is disabled, preventing user interaction.