Atoms
Mode Toggle
A theme toggle button for dark and light mode.
FormanceCustom component built for Formance products.
Installation#
npx shadcn@latest add @formance/mode-toggleInstall the following dependencies:
npm install lucide-reactCopy and paste the following code into your project.
Update the import paths to match your project setup.
Usage#
import { ModeToggle } from '@/components/ui/mode-toggle'<ModeToggle theme={theme} setTheme={setTheme} />