Forms.field_message
Server-rendered
Neutral status or informational message shown beneath a field control.
In most field/1 usage, prefer the :message slot. Use field_message/1 directly for isolated helper rendering or custom field composition.
Field message
Visible immediately after save.
<.field_message>Visible immediately after save.</.field_message>
Field message in context
Saved automatically a few seconds ago.
<.field>
<:label><.label for="project_name">Project name</.label></:label>
<.input id="project_name" name="project[name]" value="Marketing site refresh" />
<:message>Saved automatically a few seconds ago.</:message>
</.field>
Attributes
| Name | Type | Default | Values | Global Includes |
|---|---|---|---|---|
class
|
:string |
— | — | — |
rest
|
:global |
— | — | — |
Slots
| Slot | Slot Attributes |
|---|---|
inner_block
Required
|
— |