Skip to content

Switch

Terminal window
npx stylesheet-ui add switch
import { useState } from "react";
import { Switch } from "@/components/ui/switch";
const [enabled, setEnabled] = useState(false);
<Switch value={enabled} onValueChange={setEnabled} />