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
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2