/* eslint-disable jsx-a11y/label-has-associated-control */ "use client"; import * as CheckboxPrimitive from "@radix-ui/react-checkbox"; import type { VariantProps } from "class-variance-authority"; import { Check } from "lucide-react"; import type { ReactNode } from "react"; import { forwardRef } from "react"; import { cn } from "@/libs/utils"; import { checkboxVariants, labelVariants } from "./checkbox.variants"; export interface CheckboxProps extends React.ComponentPropsWithoutRef, VariantProps, VariantProps { id: string; label: string | ReactNode; labelClassname?: React.ComponentProps<"div">["className"]; } const Checkbox = forwardRef( ( { className, labelClassname = "", variant, size, rounded, label, labelTextSize, id, ...props }, ref, ) => (
), ); Checkbox.displayName = CheckboxPrimitive.Root.displayName; export { Checkbox, checkboxVariants };