switch-interactive-demo

PreviousNext
Docs
pureuiexample

Preview

Loading preview…
registry/pure-ui/examples/switch/switch-interactive-demo.tsx
import { Switch } from "@/registry/pure-ui/ui/switch";
import { Label } from "@/registry/pure-ui/ui/label";

export function SwitchInteractiveDemo() {
  return (
    <Label className="cursor-pointer">
      <Switch isInteractive />
      <span>Enable notifications</span>
    </Label>
  );
}

Installation

npx shadcn@latest add @pureui/switch-interactive-demo

Usage

import { SwitchInteractiveDemo } from "@/components/switch-interactive-demo"
<SwitchInteractiveDemo />