Update themed components with refs and css

This commit is contained in:
2026-02-10 21:09:36 -05:00
parent 456feed128
commit 2e54b81d8f
72 changed files with 1147 additions and 562 deletions

View File

@@ -1,24 +1,30 @@
import type { CheckboxProps } from "$/types/InputTypes";
import clsx from "clsx";
import { forwardRef } from "react";
import MattrixwvCheckbox from "./MattrixwvCheckbox";
export default function LightCheckbox({
const LightCheckbox = forwardRef<HTMLInputElement, CheckboxProps>(({
className,
box = true,
...props
}: CheckboxProps){
}, ref) => {
return (
<MattrixwvCheckbox
className={clsx(
className,
{
"group-data-checked:bg-white group-data-checked:stroke-black": box,
"group-data-checked:stroke-white": !box
"group-data-checked:bg-light group-data-checked:stroke-dark": box,
"group-data-checked:stroke-light": !box
}
)}
box={box}
{...props}
ref={ref}
/>
);
}
});
LightCheckbox.displayName = "LightCheckbox";
export default LightCheckbox;