Skip to content

Commit

Permalink
Update useField.md (#3685)
Browse files Browse the repository at this point in the history
fix link to `validate` (`FieldHookConfig<Value>` field) doc

Co-authored-by: Jared Palmer <jared@jaredpalmer.com>
  • Loading branch information
Gormitt and jaredpalmer authored May 26, 2023
1 parent 290d92b commit 8b9a915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/useField.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function MyOtherComponent(props) {
This object is a subset of the props that you would pass to `<Field>`. It contains:

- `name: string` - The name of the field
- `validate?: (value: any) => undefined | string | Promise<any>` - See [the documentation for `<Field>`](./field#validate)
- `validate?: (value: any) => undefined | string | Promise<any>` - See [the documentation for `<Field>`](../field#validate)
- `type?: string` - The type of the HTML input (`text`, `number` and etc.)
- `multiple?: boolean` - Whether or not the multiple values can be selected.
- `value?: string`- Works only for inputs of type `checkbox` and `radio`. When a form is submitted, checkboxes and radios are submitted with the provided `value`. Read more about it on [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#Value).
Expand Down

0 comments on commit 8b9a915

Please sign in to comment.