A two-state button that can be either on or off.
Full keyboard navigation.
Can be controlled or uncontrolled.
Install the component from your command line.
npm install @radix-ui/react-toggle
Import the component.
import * as Toggle from '@radix-ui/react-toggle';
export default () => <Toggle.Root />;
The toggle.