25 lines
500 B
TypeScript
25 lines
500 B
TypeScript
import type { CheckboxProps } from "$/types/InputTypes";
|
|
import clsx from "clsx";
|
|
import MattrixwvCheckbox from "./MattrixwvCheckbox";
|
|
|
|
|
|
export default function LightCheckbox({
|
|
className,
|
|
showBox = true,
|
|
...props
|
|
}: Readonly<CheckboxProps>){
|
|
return (
|
|
<MattrixwvCheckbox
|
|
className={clsx(
|
|
className,
|
|
{
|
|
"group-data-checked:bg-light group-data-checked:stroke-dark": showBox,
|
|
"group-data-checked:stroke-light": !showBox
|
|
}
|
|
)}
|
|
showBox={showBox}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|