Themes

Fields/Components/es-validation-messages
es-validation-messages

Display messages under fields.

Props

Name
Description
Type
Default
errorIcon

Icon to diplay next to errors. (if showIcons or high contrast)

[namespace: string
or
symbol, name: string]
or
string
[ICON_NAMESPACE, error]
infoIcon

Icon to diplay next to infos. (if showIcons or high contrast)

[namespace: string
or
symbol, name: string]
or
string
[ICON_NAMESPACE, info]
messages

The messages to display.

undefined
or
{ error?: ValidationMessage[]
or
undefined; warning?: ValidationMessage[]
or
undefined; info?: ValidationMessage[]
or
undefined; children?: Record<number, Record<Severity, ValidationMessage[]>>
or
undefined; }
showIcons

Display icons alongside messages.

boolean
false
warningIcon

Icon to diplay next to warnings. (if showIcons or high contrast)

[namespace: string
or
symbol, name: string]
or
string
[ICON_NAMESPACE, warning]

ValidationMessage

ValidationMessage = string | RenderFunction

Severity

Severity = "error" | "warning" | "info"