Components
The Switch component in ShadCN UI is toggle button used to turn settings on or off with a smooth sliding motion. It provides a clean and accessible way to control binary options like Dark Mode or Notifications. Fully responsive and theme-aware, it enhances user interaction with a modern, minimal design.
Loading preview...
import { PreferencesDialog } from "@/components/ui/preference-modal";
export default function DemoOne() {
return <PreferencesDialog />;
}