Files
MattrixwvReactComponents/lib/component/input/checkbox/InfoCheckbox.tsx
2026-02-14 16:40:57 -05:00

25 lines
498 B
TypeScript

import type { CheckboxProps } from "$/types/InputTypes";
import clsx from "clsx";
import MattrixwvCheckbox from "./MattrixwvCheckbox";
export default function InfoCheckbox({
className,
showBox = true,
...props
}: Readonly<CheckboxProps>){
return (
<MattrixwvCheckbox
className={clsx(
className,
{
"group-data-checked:bg-info group-data-checked:stroke-white": showBox,
"group-data-checked:stroke-info": !showBox
}
)}
showBox={showBox}
{...props}
/>
);
}