Optional
Provide an accessible name for screen readers. The switch renders no visible label of its own, so set this unless a visible label is associated with it elsewhere.
`Dark mode` Copy
`Dark mode`
The checked state of the switch.
false Copy
false
Called when the user toggles the switch.
Provide an accessible name for screen readers. The switch renders no visible label of its own, so set this unless a visible label is associated with it elsewhere.