import { useId } from "react";
import type { HTMLProps } from "../../shared/types";
import { cn } from "../../shared/utils/cn";
import { Typography } from "../typography/Typography";
import { Icon } from "../icon/Icon";
export type CheckboxProps = HTMLProps<"input"> & {
label: React.ReactNode;
labelClassName?: string;
};
export const Checkbox = ({
className,
label,
labelClassName,
id: propId,
disabled,
checked,
onChange,
...props
}: CheckboxProps) => {
const generatedId = useId();
const id = propId ?? generatedId;
return (
);
};