import * as React from "react"; import { Checkbox as CheckboxPrimitive } from "@base-ui/react/checkbox"; import { Check } from "lucide-react"; import { cn } from "../utils/cn"; const Checkbox = React.forwardRef( ({ className, render, type = "button", ...props }, ref) => { return ( } className={cn( "peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring data-disabled:cursor-not-allowed data-disabled:opacity-50 data-checked:bg-primary data-indeterminate:bg-primary data-checked:text-primary-foreground data-indeterminate:text-primary-foreground", className, )} {...props} > ); }, ); Checkbox.displayName = "Checkbox"; interface CheckboxProps extends Omit< CheckboxPrimitive.Root.Props, "className" | "render" > { className?: string; render?: CheckboxPrimitive.Root.Props["render"]; type?: React.ButtonHTMLAttributes["type"]; } export { Checkbox };