Docs
Switch

Switch

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

Installation

npx shadcn-ui add switch
npx shadcn-ui add switch

Usage

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