Skip to content

Commit bace857

Browse files
author
Sergio Herrera Guzmán
committed
document as and render incompatibility
1 parent 9bbd981 commit bace857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export default function App() {
117117
| `name` | `string` || Associated field name. |
118118
| `errors` | `object` | | `errors` object from React Hook Form. It's optional if you are using `FormProvider`. |
119119
| `message` | `string \| React.ReactElement` | | inline error message. |
120-
| `as` | `string \| React.ReactElement \| React.ComponentType` | | Wrapper component or HTML tag. eg: `as="p"`, `as={<p />}` or `as={CustomComponent}` |
120+
| `as` | `string \| React.ReactElement \| React.ComponentType` | | Wrapper component or HTML tag. eg: `as="p"`, `as={<p />}` or `as={CustomComponent}`. This prop is incompatible with prop `render` and will take precedence over it. |
121121
| `render` | `Function` | | This is a [render prop](https://reactjs.org/docs/render-props.html) for rendering error message or messages. <br><b>Note:</b> you need to set `criteriaMode` to `all` for using messages. |
122122

123123
## Backers

0 commit comments

Comments
 (0)