First commit

This commit is contained in:
dyzulk
2025-12-30 12:11:04 +07:00
commit 34dc111344
322 changed files with 31972 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
import React, { FC, ReactNode } from "react";
import { twMerge } from "tailwind-merge";
interface LabelProps {
htmlFor?: string;
children: ReactNode;
className?: string;
}
const Label: FC<LabelProps> = ({ htmlFor, children, className }) => {
return (
<label
htmlFor={htmlFor}
className={twMerge(
// Default classes that apply by default
"mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",
// User-defined className that can override the default margin
className
)}
>
{children}
</label>
);
};
export default Label;