Skip to content
Snippets Groups Projects

Documentation

Merged Defendi Alberto requested to merge documentation into master
10 files
+ 851
6284
Compare changes
  • Side-by-side
  • Inline
Files
10
Wrapper for any input field
```js
import { SubmitHandler, useForm } from 'react-hook-form';
const { control } = useForm();
<InputField
name="password"
control={control}
rules={{
minLength: 8,
maxLength: 60,
required: {
value: true,
message: 'Insert valid password',
},
}}
label="Password"
error={false}
errorMessage="Insert valid password"
/>
```
Loading