Components
Switch
A switch component
Preview
Loading...
import { Label } from "@/registry/axon/ui/label";import { Switch } from "@/registry/axon/ui/switch";export default function SwitchDemo() { return ( <div className="flex items-center space-x-2"> <Switch id="airplane-mode" /> <Label htmlFor="airplane-mode">Airplane Mode</Label> </div> );}Installation
CLI
npx shadcn@latest add @emberui/switchyarn shadcn@latest add @emberui/switchpnpm dlx shadcn@latest add @emberui/switchbunx --bun shadcn@latest add @emberui/switchReference
This component is based on the shadcn/ui Switch component.