You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
444 B

3 years ago
import React from "react";
import { useForm } from "react-hook-form";
import Input from "./Input";
3 years ago
const FormInput = () => {
const { register, getValues } = useForm();
3 years ago
return (
3 years ago
<div className="max-w-[1000px] p-20 mx-auto mt-20 bg-white rounded-sm shadow-sm">
<Input
register={register("firstName")}
// defaultValue={info?.firstName}
label="نام "
/>
3 years ago
</div>
);
};
export default FormInput;