mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 21:53:57 -05:00
Radio Button and Checkbox Created
This commit is contained in:
24
lib/component/input/checkbox/SecondaryCheckbox.tsx
Normal file
24
lib/component/input/checkbox/SecondaryCheckbox.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
import type { CheckboxProps } from "$/types/Input";
|
||||
import clsx from "clsx";
|
||||
import MattrixwvCheckbox from "./MattrixwvCheckbox";
|
||||
|
||||
|
||||
export default function SecondaryCheckbox({
|
||||
className,
|
||||
box = true,
|
||||
...props
|
||||
}: CheckboxProps){
|
||||
return (
|
||||
<MattrixwvCheckbox
|
||||
className={clsx(
|
||||
className,
|
||||
{
|
||||
"group-data-checked:bg-neutral-600 group-data-checked:stroke-white": box,
|
||||
"group-data-checked:stroke-neutral-600": !box
|
||||
}
|
||||
)}
|
||||
box={box}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user