---
url: "https://vueda.dev/v3/reference/theming/keys/FieldMessage.md"
title: "FieldMessage"
---

# FieldMessage

Source: `client/lib/theme/vueda-tailwind/shell/index.js`

> The validation or warning message attached to a field. It maps error severity to destructive text and all other severities to warning text.

Vue component: [FieldMessage](/v3/reference/api/vue/FieldMessage.md)

| Slot | Default classes | Description |
| --- | --- | --- |
| [root](/v3/reference/theming/keys/FieldMessage.md#theme-key-FieldMessage-root) | callback | The validation or warning message attached to a field. It maps error severity to destructive text and all other severities to warning text. |
| [list](/v3/reference/theming/keys/FieldMessage.md#theme-key-FieldMessage-list) | `ml-4 flex list-disc flex-col gap-1` | The list wrapper for multiple field messages. It keeps grouped validation details compact and indented under the field message block. |

<a id="theme-key-FieldMessage-root"></a>

## root

> The validation or warning message attached to a field. It maps error severity to destructive text and all other severities to warning text.

Callback:

```javascript
({ severity }) => ({
            class: [
                "text-[length:var(--vueda-text-supporting)] leading-[1.4] font-medium",
                severity === "error" ? "text-destructive" : "text-warning",
            ],
        })
```

Source: `client/lib/theme/vueda-tailwind/shell/FieldMessage.theme.js:18`

<a id="theme-key-FieldMessage-list"></a>

## list

> The list wrapper for multiple field messages. It keeps grouped validation details compact and indented under the field message block.

Default classes:

`ml-4 flex list-disc flex-col gap-1`

Source: `client/lib/theme/vueda-tailwind/shell/FieldMessage.theme.js:27`
