1. Component Guide
  2. Form error message
  3. With dir attribute
Form error message example

With dir attribute

Allows the correct display of right to left languages

How it looks (preview)

Error: An error message displayed right to left

How to call this example

<%= render "govuk_publishing_components/components/error_message", {
  text: "An error message displayed right to left",
  id: "error_id_2",
  right_to_left: true
} %>