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