Form date input example

With error id but no message

For some instances of this component the error message should be rendered separately but an error state is still required. In this scenario an error_id can be passed without an error_message to highlight the component and set aria-describedby correctly.

How it looks (preview)

What is your date of birth?
For example, 31 3 1980

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_id: "error_id"
} %>