ErrorMessage
An error message displays validation errors for a form field.
AI Tip Want to skip the docs? Use the MCP Server
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?
Whether or not to hide the error message icon.
style?
The inline style for the element. A function may be provided to compute the style based on component state.
children?
The children of the component. A function may be provided to alter the children based on component state.
className?
The CSS className for the element. A function may be provided to compute the class based on component state.
elementType?
size?
The Typography Type Scale to use.
Defaults to md.