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

With name

Settting a name at the component level helps generating the name for each individual input within the component as follows: custom-name[day], custom-name[month], custom-name[year]

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/date_input", {
  name: "dob"
} %>