Form date input example

With legend level and size

Valid options for level are 1 to 6. Valid options for size are s, m, l and xl.

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?",
  legend_heading_level: 2,
  legend_size: "l"
} %>