import { forwardRef, type InputHTMLAttributes, type ReactNode } from "react";
import "@shared/components/Checkbox.css";
export interface CheckboxProps extends Omit<
InputHTMLAttributes,
"type" | "size"
> {
label?: ReactNode;
description?: ReactNode;
/** Tri-state checkbox visual (still focusable + submittable, but renders the dash). */
indeterminate?: boolean;
}
export const Checkbox = forwardRef(
function Checkbox(
{ label, description, indeterminate, className, id, ...rest },
ref,
) {
return (
);
},
);