ErrorMessage
An error message displays validation errors for a form field.
Usage
No icon
An error message can hide its default icon.
Multiple errors
An error message can display multiple validation errors created by a form field.
Props
- hideIcon?
- style?
- children?
- className?
- id?
- elementType?
- size?
Whether or not to hide the error message icon.
The inline style for the element. A function may be provided to compute the style based on component state.
The children of the component. A function may be provided to alter the children based on component state.
The CSS className for the element. A function may be provided to compute the class based on component state.
The element's unique identifier. See MDN.
The Typography Type Scale to use.
Defaults to md.