Docs
Switch

Switch

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

Loading...
Loading...

Installation

npx shadcn-ng@latest add switch
npm
yarn
pnpm
bun

Copy and paste the following code into your project.

Update the import paths to match your project setup.

Usage

import { SwitchDirective } from '@/components/ui/switch.directive'
<button ubSwitch />