Skip to content

FieldMessage ​

Overview ​

Displays field messages (errors or warnings) from a slot or an array of strings, arrays of strings (e.g. multiple server messages under one error code), or objects with a message property, deduplicating and rendering a list when multiple messages are present.

Theme entry: FieldMessage

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
messagesarrayundefinedOne or more message strings, arrays of message strings, or objects with a message property to display beneath the field.
severitystring"error"Controls color and ARIA role.

Slots ​

default ​

Slot.

Source ​

client/lib/shell/field/FieldMessage.vue