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

With items and dir attribute

To allow the correct display of right to left languages on error items

How it looks (preview)

Error: Error 1 displayed right to left
Error 2 displayed right to left

How to call this example

<%= render "govuk_publishing_components/components/error_message", {
  right_to_left: true,
  items: [
    {
      text: "Error 1 displayed right to left"
    },
    {
      text: "Error 2 displayed right to left"
    }
  ]
} %>