Switch

Displays an on/off switch control.

This component inherits props from the Radix Switch component and supports common margin props m, mx, my, ml, mr, mt, mb. View source

Use the checked and onCheckedChange props to control the value of the switch.

Use the native disabled attribute to create a disabled switch.