mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 06:03:58 -05:00
25 lines
471 B
TypeScript
25 lines
471 B
TypeScript
import type { CheckboxProps } from "$/types/InputTypes";
|
|
import clsx from "clsx";
|
|
import MattrixwvCheckbox from "./MattrixwvCheckbox";
|
|
|
|
|
|
export default function LightCheckbox({
|
|
className,
|
|
box = true,
|
|
...props
|
|
}: CheckboxProps){
|
|
return (
|
|
<MattrixwvCheckbox
|
|
className={clsx(
|
|
className,
|
|
{
|
|
"group-data-checked:bg-white group-data-checked:stroke-black": box,
|
|
"group-data-checked:stroke-white": !box
|
|
}
|
|
)}
|
|
box={box}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|