---
url: "https://vueda.dev/v3/reference/api/vue/FieldMessage.md"
title: "FieldMessage"
---

# 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](/v3/reference/theming/keys/FieldMessage.md)

## Props

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="prop-themeOverride">themeOverride</span> | `Object` |  | `null` | A partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants. |
| <span id="prop-class">class</span> | `import('vue').HTMLAttributes['class']` |  | `undefined` | Additional CSS classes to apply to the root element. |
| <span id="prop-messages">messages</span> | `array` |  | `undefined` | One or more message strings, arrays of message strings, or objects with a message property to display beneath the field. |
| <span id="prop-severity">severity</span> | `string` |  | `"error"` | Controls color and ARIA role. |

## Slots

### `default` {#slot-default}

Slot.

## Source

`client/lib/shell/field/FieldMessage.vue`
