Datetime fields (experimental) example

With separate date time error items

How it looks (preview)

Date

Error: Descriptive date error 1
Descriptive date error 2

Error:

Error:

Error:

Time

Error: Descriptive time error 1
Descriptive time error 2

:

How to call this example

<%= render "govuk_publishing_components/components/datetime_fields", {
  error_items_date: [
    {
      text: "Descriptive date error 1"
    },
    {
      text: "Descriptive date error 2"
    }
  ],
  error_items_time: [
    {
      text: "Descriptive time error 1"
    },
    {
      text: "Descriptive time error 2"
    }
  ]
} %>