1. Collections Component Guide
  2. Form date input
  3. With error items
Form date input example

With error items

How it looks (preview)

What is your date of birth?
For example, 31 3 1980
Error: Error 1
Error 2
Error:
Error:
Error:

How to call this example

<%= render "govuk_publishing_components/components/date_input", {
  legend_text: "What is your date of birth?",
  hint: "For example, 31 3 1980",
  error_items: [
    {
      text: "Error 1"
    },
    {
      text: "Error 2"
    }
  ]
} %>