Skip to main content

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

<govuk-app-count>

Count

Shows how many of something there are, big enough to take in at a glance, such as a driver's offences and penalty points.

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.

Examples

A count

Points Points

HTML

<govuk-app-count value="12">Points</govuk-app-count>

A driver's offences and points, in summary columns

Offences Points Offences Points

HTML

<govuk-app-summary-columns>
  <govuk-app-summary-column>
    <govuk-app-count value="2">Offences</govuk-app-count>
  </govuk-app-summary-column>
  <govuk-app-summary-column>
    <govuk-app-count value="12">Points</govuk-app-count>
  </govuk-app-summary-column>
</govuk-app-summary-columns>

Inputs

Attributes
Attribute Type Default Description
value string How many, such as 0 or 12.

Content

What it counts, a word or two, such as Offences or Points.

Outputs

None.

Rules

  • Use it for a number that matters on its own, at a glance, such as penalty points. For a number in a list, use a grouped list's count row.
  • Say what it counts in a word or two, and make it agree with the number: 0 Offences, 1 Offence, 12 Points.
  • Put two or three side by side in summary columns, with a way to see more, such as History, in a row below them.

When not to use it

When Use instead
For a number in a list, such as of unread messages govuk-app-grouped-list-row type="count"
For how something with a deadline stands, such as days left on a vehicle's tax govuk-app-status
For a number in a sentence govuk-app-text

Sources

The iOS, Android and Figma sources it was built from
  • iOS: DrivingRecordView, the driving record today, without counts in govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/DrivingRecordView.swift at 8f1fe5da
  • Figma: none linked yet