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"
    }
  ]
} %>