import * as CheckboxPrimitive from "@radix-ui/react-checkbox"; import * as React from "react"; import { cn } from "~/lib/cn"; import { IconCheck } from "./icons"; interface CheckboxProps extends React.ComponentPropsWithoutRef { label?: string; } const Checkbox = React.forwardRef< React.ElementRef, CheckboxProps >(({ className, label, ...props }, ref) => (
{label ? {label} : null}
)); Checkbox.displayName = CheckboxPrimitive.Root.displayName; export { Checkbox };