Form date input example

With data attributes

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/date_input", {
  data_attributes: {
    module: "some-module",
    other_attribute: "something-else"
  }
} %>