From c0477c3f5a24255958bf125a9a6079a121896766 Mon Sep 17 00:00:00 2001 From: rajun Date: Tue, 27 Oct 2026 16:28:49 +0530 Subject: [PATCH] feat: add switch component --- app/components/ui/switch.tsx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 app/components/ui/switch.tsx diff --git a/app/components/ui/switch.tsx b/app/components/ui/switch.tsx new file mode 100644 index 0000000..1525354 --- /dev/null +++ b/app/components/ui/switch.tsx @@ -0,0 +1,32 @@ +import * as React from "react" +import { cn } from "~/lib/utils" +import { Switch as SwitchPrimitive } from "radix-ui" + +function Switch({ + className, + size = "default", + ...props +}: React.ComponentProps & { + size?: "sm" | "default" +}) { + return ( + + + + ) +} + +export { Switch }