switch-checked

PreviousNext
Docs
reuicomponent

Preview

Loading preview…
registry/default/components/switch/checked.tsx
import { Label } from '@/registry/default/ui/label';
import { Switch } from '@/registry/default/ui/switch';

export default function SwitchDemo() {
  return (
    <div className="flex items-center space-x-2">
      <Switch id="auto-update" checked />
      <Label htmlFor="auto-update">Auto update</Label>
    </div>
  );
}

Installation

npx shadcn@latest add @reui/switch-checked

Usage

import { SwitchChecked } from "@/components/switch-checked"
<SwitchChecked />