Command Menu

Search documentation, components, and switch theme.

Atoms

Switch

A control that toggles between on and off.

shadcn/ui
Docs

Installation#

npx shadcn@latest add @formance/switch

Install the following dependencies:

npm install radix-ui

Copy 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" />