Command Palette

Search for a command to run...

Switch

A toggle control that allows switching between on and off states. Built on Base UI Switch primitive.

Installation

npx shadcn add switch --registry https://ui.ch.sh/r

Usage

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

export default function Example() {
  return <Switch />
}

Examples

Small Size