ComponentsSwitchCopy PageA control that allows the user to toggle between checked and not checked.Copy PageDocs API Reference PreviewCodeAirplane Mode Installation pnpm npm yarn bunpnpm dlx shadcn@latest add https://basecn.dev/r/switch.jsonorIf you are using a namespaced registry, you can use the following command:pnpm dlx shadcn@latest add @basecn/switch Examples Disabled PreviewCodeToggle Theme Color PreviewCodeDefaultBlueGreenRed With Thumb Icon PreviewCode With Form PreviewCodeEmail NotificationsMarketing emailsReceive emails about new products, features, and more.Security emailsReceive emails about your account security.SubmitDocs by FumadocsAnalytics by Databuddy