This commit is contained in:
2025-03-20 14:26:57 +05:00
commit eb552cbdc8
55 changed files with 2212 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
import React from "react";
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
label?: string;
}
function Input({ label, ...props }: InputProps) {
return (
<label className="space-y-2">
{label && <p className="text-xs text-black/50">{label}</p>}
<input
{...props}
className="bg-white rounded-lg px-5 py-3.5 outline-none ring-1 ring-transparent focus:ring-[#363636] transition-[ring-color] inline-block w-full"
/>
</label>
);
}
export default Input;