Switch
A toggle switch control that can be turned on or off.Import
Switch.Root
Represents the switch itself.Props
State
checked: boolean - Whether the switch is currently activedisabled: boolean - Whether the component should ignore user interactionreadOnly: boolean - Whether the user should be unable to activate or deactivate the switchrequired: boolean - Whether the user must activate the switch before submitting a form
Switch.Thumb
The movable part of the switch that indicates whether the switch is on or off.Props
Inherits common props (className, render, style).