Global banner example

With a link and text

How it looks (preview)

Bring photo ID to vote Check what photo ID you'll need to vote in person in the General Election on 4 July.

How to call this example

<%= render "govuk_publishing_components/components/global_banner", {
  title: "Bring photo ID to vote",
  title_href: "https://www.gov.uk",
  text: sanitize("Check what photo ID you'll need to vote in person in the General Election on 4 July."),
  banner_version: 1
} %>