Skip to content

An iOS 5-6 style ON/OFF switch: a sliding strip with a blue embossed ON half, a light engraved OFF half and a glossy white knob.

Installation

Requires the theme. Register the @skeuomorph namespace and add @skeuomorph/skeuomorph first, as shown in the installation guide. The CLI also pulls it in as a dependency.

pnpm dlx shadcn@latest add @skeuomorph/switch

Without the namespace, install straight from the URL:

pnpm dlx shadcn@latest add https://ui-skeuomorph.vercel.app/r/switch.json

Usage

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