Seed: saas template (34 files)

This commit is contained in:
2026-07-23 22:08:46 +00:00
parent 61563eac9a
commit 876303c87e
+21
View File
@@ -0,0 +1,21 @@
import * as React from "react";
import { cn } from "@/lib/utils";
export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
onCheckedChange?: (checked: boolean) => void;
}
export const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
({ className, onCheckedChange, ...props }, ref) => (
<input
ref={ref}
type="checkbox"
onChange={(e) => onCheckedChange?.(e.target.checked)}
className={cn("h-4 w-4 rounded border-slate-300 accent-indigo-600", className)}
{...props}
/>
)
);
Checkbox.displayName = "Checkbox";
export default Checkbox;