Atoms
Switch
A control that toggles between on and off.
shadcn/uiBased on shadcn/ui with Formance brand styling.
Installation#
npx shadcn@latest add @formance/switchInstall the following dependencies:
npm install radix-uiCopy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
import { Switch } from '@/components/ui/switch'<Switch id="webhooks" />