Switch

A control that indicates whether a setting is on or off.

Installation

pnpm dlx shadcn@latest add @lumi-ui/switch

Basic Usage

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

Anatomy

 <Switch />

Integration with Form

See Form Integration for more information.