Banner example
With secondary text
This example shows how the consultation and call for evidence templates use the secondary text to display dates.
How it looks (preview)
How to call this example
<%= render "components/banner", {
title: "Summary",
text: "This call for evidence will inform the development of the financial services sector plan, a key part of the government’s modern industrial strategy.",
secondary_text: sanitize("This consultation ran from<br><strong class=\"consultation-date\"><time datetime=\"2024-11-05T11:00:00.000+00:00\">11am on 5 November 2024</time> to <time datetime=\"2024-12-03T17:00:00.000+00:00\">5pm on 3 December 2024</time></strong>")
} %>