Skip to main content

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

<govuk-app-address>

Address

Shows a person's name and postal address, such as who a vehicle is registered to, or who holds a driving licence.

GOV.UK app component

Known differences from the app

  • Each line of the app’s address is a paragraph, and iOS puts paragraphs a little further apart than the lines of one. Here, every line is that far apart, so a single line long enough to wrap is a little looser than in the app.

Examples

A name and address

75 St John's Street Gateshead NE8 2ED 75 St John's Street Gateshead NE8 2ED

HTML

<govuk-app-address name="Mrs Jane Bloggs">
  75 St John's Street
  Gateshead
  NE8 2ED
</govuk-app-address>

Under a heading, as Registered to

Registered to 29 Orchard Drive Milton Keynes PA98 J83 Registered to 29 Orchard Drive Milton Keynes PA98 J83

HTML

<govuk-app-heading level="2" size="title-2">Registered to</govuk-app-heading>
<govuk-app-address name="Ms Anna Ornella Arenö">
  29 Orchard Drive
  Milton Keynes
  PA98 J83
</govuk-app-address>

An address alone

Central Bedfordshire Council
Priory House
Chicksands
SG17 5TQ
Central Bedfordshire Council
Priory House
Chicksands
SG17 5TQ

HTML

<govuk-app-address>
  Central Bedfordshire Council<br>
  Priory House<br>
  Chicksands<br>
  SG17 5TQ
</govuk-app-address>

Inputs

Attributes
Attribute Type Default Description
name string The person's name, in bold above the address, such as Mrs Jane Bloggs. Leave it off for an address alone.

Content

The address's lines, each on a line of its own, or separated by <br>. Blank lines and indents are left out, so they can be written however reads best in the HTML.

Outputs

None.

Rules

  • Write the name and address as the service holds them: the app shows DVLA's records as they are, which may be in capitals.
  • Put each part of the address on a line of its own, ending with the postcode.
  • Give it a heading that says whose address it is and why, such as Registered to.
  • Don't show an address the user hasn't proved is theirs, such as in a vehicle check for any vehicle.

When not to use it

When Use instead
For one fact about a place, such as a postcode on its own govuk-app-grouped-list-row type="information"
To ask the user for their postcode govuk-app-text-field type="postcode"
For a place the user can go to, such as their local council govuk-app-link-card

Sources

The iOS, Android and Figma sources it was built from

In the app

Screenshots of the app's own component, to compare the examples with

iOS

iOS app: Registered to, on a vehicle's detail screen, in light mode
Registered to, on a vehicle's detail screen, in light mode
iOS app: The same, in dark mode
The same, in dark mode
iOS app: A driving licence's holder, on the licence
A driving licence's holder, on the licence