25 lines
488 B
TypeScript
25 lines
488 B
TypeScript
|
|
import { FormProps } from "@/types/types";
|
|
export default function FormInput({
|
|
label,
|
|
value,
|
|
type = "text",
|
|
placeholder="string"
|
|
}: FormProps) {
|
|
return (
|
|
<div>
|
|
<label className="mb-2 block text-sm text-slate-400">
|
|
{label}
|
|
</label>
|
|
|
|
<input
|
|
type={type}
|
|
defaultValue={value}
|
|
placeholder={placeholder}
|
|
|
|
className="h-10 w-full rounded-xl border border-slate-700 text-white px-5"
|
|
|
|
/>
|
|
</div>
|
|
);
|
|
} |