Docs

Cinder UI

Forms.field_error

Server-rendered

Error or validation message shown beneath a field control.

In most field/1 usage, prefer the :error slot. Use field_error/1 directly for isolated helper rendering or custom field composition.

Field error

Please use your company domain.

  <.field_error>Please use your company domain.</.field_error>

Field error in context

Please use your company domain.

  <.field invalid={true}>
  <:label><.label for="work_email">Work email</.label></:label>
  <.input id="work_email" name="work_email" type="email" value="hello@gmail.com" />
  <:error>Please use your company domain.</:error>
</.field>

Attributes

Name Type Default Values Global Includes
class :string
rest :global

Slots

Slot Slot Attributes
inner_block Required