Files
MattrixwvReactComponents/lib/component/input/checkbox/DangerCheckbox.tsx

25 lines
471 B
TypeScript

import type { CheckboxProps } from "$/types/Input";
import clsx from "clsx";
import MattrixwvCheckbox from "./MattrixwvCheckbox";
export default function DangerCheckbox({
className,
box = true,
...props
}: CheckboxProps){
return (
<MattrixwvCheckbox
className={clsx(
className,
{
"group-data-checked:bg-red-600 group-data-checked:stroke-white": box,
"group-data-checked:stroke-red-600": !box
}
)}
box={box}
{...props}
/>
);
}