Factory for Good

Switch

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

Installation

pnpm dlx shadcn@latest add switch

Usage

import { Label } from "@/components/ui/label";
import { Switch } from "@/components/ui/switch";

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

On this page