import * as React from "react"; import { Switch as SwitchPrimitives } from "@base-ui/react/switch"; import { cn } from "../utils/cn"; const Switch = React.forwardRef( ({ className, render, type = "button", ...props }, ref) => ( } {...props} ref={ref} > ), ); Switch.displayName = "Switch"; interface SwitchProps extends Omit< SwitchPrimitives.Root.Props, "className" | "render" > { className?: string; render?: SwitchPrimitives.Root.Props["render"]; type?: React.ButtonHTMLAttributes["type"]; } export { Switch };