1. Component Guide
  2. Form date input
  3. With legend
Form date input example

With legend

How it looks (preview)

What is your date of birth?

How to call this example

<%= render "govuk_publishing_components/components/date_input", {
  legend_text: "What is your date of birth?"
} %>