3

A control that allows the user to toggle between checked and not checked.

Installation

bunx --bun shadcn@latest add https://ui.brodin.dev/r/switch.json

Usage

import { Switch } from "@/components/ui/switch"
<Switch />

Examples

Form