Skip to content

Commit

Permalink
Added required prop to useTextInput docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JDMathew committed Jul 4, 2024
1 parent 4226e66 commit 54ca9d9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/forms/docs/useTextInput.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,15 @@ The ID of the next field to focus when the user taps on the `next` button of the
| ------ | --------- |
| string | undefined |

### <Required /> `hasValidation`
### `required`

This property is used to set the input as required and will display and error if a value has not been set

| Type | Default |
| ------- | --------- |
| boolean | undefined |

### `hasValidation`

This property is used to know if the input can display an error, in case of failed validation; and if so is used to:

Expand Down

0 comments on commit 54ca9d9

Please sign in to comment.