import type { CheckboxProps } from "$/types/InputTypes"; import { Checkbox } from "@headlessui/react"; import clsx from "clsx"; import { forwardRef } from "react"; const MattrixwvCheckbox = forwardRef(({ id, className, labelClassName, name, size = "sm", showBox = true, onChange, checked, defaultChecked, strokeWidth = 2, value, disabled, ariaLabel, children }, ref ) => { return ( {/* Checkbox */}
{/* Label */} { children &&
{children}
}
); }); MattrixwvCheckbox.displayName = "MattrixwvCheckbox"; export default MattrixwvCheckbox;