basecn
Components

Switch

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

Installation

pnpm dlx shadcn@latest add https://basecn.dev/r/switch.json
or

If you are using a namespaced registry, you can use the following command:

pnpm dlx shadcn@latest add @basecn/switch

Examples

Disabled

Color

With Thumb Icon

With Form

Email Notifications

Receive emails about new products, features, and more.

Receive emails about your account security.