import { forwardRef, useId } from "react"; import type { InputHTMLAttributes, ReactNode } from "react"; import { cn } from "@/lib/utils/cn"; export interface CheckboxProps extends Omit, "type"> { label: ReactNode; description?: ReactNode; } /** * Native checkbox styled via `accent-*` rather than a hand-drawn box — full * built-in keyboard/screen-reader support, no extra ARIA required. */ export const Checkbox = forwardRef( ({ className, label, description, id, ...props }, ref) => { const generatedId = useId(); const checkboxId = id ?? generatedId; return ( ); }, ); Checkbox.displayName = "Checkbox";