UI.MD

Search documentation

Search for components, guides, and tokens

Switch

A toggle switch for boolean settings with default and compact size variants.

Installation

$
npx shadcn@latest add https://ui.mattdowney.com/r/switch.json

Usage

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

Examples

Default

Small