Switch

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

Preview

Installation

Install the package using your preferred package manager:

npx shadcn@latest add @airy/switch

Usage

Import the component from the package:

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

Then use it in your application:

<Switch />

Examples

Default