Login and dashboard added
This commit is contained in:
25
utils/formInput.tsx
Normal file
25
utils/formInput.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
interface Props {
|
||||
label: string;
|
||||
value?: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export default function FormInput({
|
||||
label,
|
||||
value,
|
||||
type = "text",
|
||||
}: Props) {
|
||||
return (
|
||||
<div>
|
||||
<label className="mb-2 block text-sm text-slate-400">
|
||||
{label}
|
||||
</label>
|
||||
|
||||
<input
|
||||
type={type}
|
||||
defaultValue={value}
|
||||
className="h-10 w-full rounded-xl border border-slate-700 text-white px-5"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user