A component that lets users instantly turn an option on or off.
@radix-ui/react-switch
Install the following dependencies:
This component is based on the <button>
element and supports all of its props and adds:
Prop | Type | Default |
---|---|---|
checked | boolean | false |
disabled | boolean | false |