Skip to main content

These components are for prototyping the GOV.UK app, not for use in production.

<govuk-app-card-header>

Card header

Shows at a glance how something on a card stands, when it needs attention: the top of the card in a colour for its state, holding its title, such as Disqualified, Revoked or Expired.

GOV.UK app component Proposed

Warning This isn’t in the app yet. It’s proposed, from a screenshot of the future driving designs in Figma, until there’s a link to the file, so it may change, or never ship. Don’t present it as part of the app today.

Where it comes from

The future driving designs in Figma, which we have only as a screenshot for now. Its sizes and spacing are read from that, so they’re approximate, and will be checked against the Figma file once we have it.

The designs show only light mode. Its colours are strong, as a number plate’s are, so they’re the same in dark mode, with black text.

Known differences from the designs

  • The designs bold only the first word of a line such as “Expired 28 March 2026”. Text can’t yet bold part of a line, so the example bolds it all.

Examples

Danger, tall, as a disqualified driver

Disqualified You have been disqualified from driving until 24 April 2026. Disqualified You have been disqualified from driving until 24 April 2026.

HTML

<govuk-app-grouped-list>
  <govuk-app-grouped-list-row type="content" flush>
    <govuk-app-card-header tone="danger" tall>
      <govuk-app-heading level="2" size="title-1">Disqualified</govuk-app-heading>
    </govuk-app-card-header>
  </govuk-app-grouped-list-row>
  <govuk-app-grouped-list-row type="content">
    <govuk-app-text>You have been disqualified from driving until 24 April 2026.</govuk-app-text>
  </govuk-app-grouped-list-row>
</govuk-app-grouped-list>

Warning, tall, as a revoked licence

Revoked Get a provisional licence Revoked Get a provisional licence

HTML

<govuk-app-grouped-list>
  <govuk-app-grouped-list-row type="content" flush>
    <govuk-app-card-header tone="warning" tall>
      <govuk-app-heading level="2" size="title-1">Revoked</govuk-app-heading>
    </govuk-app-card-header>
  </govuk-app-grouped-list-row>
  <govuk-app-grouped-list-row type="link" href="https://www.gov.uk/apply-first-provisional-driving-licence">Get a provisional licence</govuk-app-grouped-list-row>
</govuk-app-grouped-list>

Caution, as an expired licence

Expired 28 March 2026 ARENO803236AA170 29 Orchard Drive Milton Keynes PA98 J83 Expired 28 March 2026 ARENO803236AA170 29 Orchard Drive Milton Keynes PA98 J83

HTML

<govuk-app-grouped-list>
  <govuk-app-grouped-list-row type="content" flush>
    <govuk-app-card-header>
      <govuk-app-text size="subheadline" emphasis>Expired 28 March 2026</govuk-app-text>
      <govuk-app-heading level="2" size="title-1">ARENO803236AA170</govuk-app-heading>
    </govuk-app-card-header>
  </govuk-app-grouped-list-row>
  <govuk-app-grouped-list-row type="content">
    <govuk-app-address name="Ms Anna Ornella Arenö">
      29 Orchard Drive
      Milton Keynes
      PA98 J83
    </govuk-app-address>
  </govuk-app-grouped-list-row>
</govuk-app-grouped-list>

Inputs

Attributes
Attribute Type Default Description
tone "caution" | "warning" | "danger" caution caution: pale yellow, as for an expired licence. warning: yellow, as for a revoked one. danger: red, as for a disqualified driver.
tall boolean false Makes it at least 120pt tall, its content at the bottom, as the designs show a state that is the card's whole point, such as Disqualified.

Content

What it holds, such as a heading, or a line of text over one, 8pt apart.

Outputs

None.

Rules

  • Use it only for a state that needs the user's attention, such as an expired, revoked or disqualified licence. A card that's fine has no header.
  • Put the state in words in its title: the colour alone doesn't tell everyone.
  • Match the tone to how serious the state is: caution for something to put right, warning for something that stops the user, danger for the most serious.
  • Put it in a grouped list's first row, flush, so it fills the top of the card, and say what the state means, and what to do, in the rows below.

When not to use it

When Use instead
For a card that's fine, with nothing to put right Leave the header off, and say how it stands in the card's rows.
For how a vehicle's tax or MOT, or a licence, stands, when it needs no attention govuk-app-status
For a warning about the whole screen, not one card govuk-app-banner type="warning"

Sources

The iOS, Android and Figma sources it was built from
  • iOS: DrivingLicenceNoticeView, how the app shows these states today in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/DrivingLicenceNoticeView.swift at 8f1fe5da
  • Figma: none linked yet