Datetime fields (experimental) example

With custom heading options

How it looks (preview)

The date

The time

:

How to call this example

<%= render "govuk_publishing_components/components/datetime_fields", {
  heading_level: 2,
  heading_size: "l",
  date_heading: "The date",
  time_heading: "The time"
} %>