- iOS:
addressView, under Registered toin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/VehicleDetailView.swift at 8f1fe5da - iOS:
addressView, the licence holderin govuk-once/govuk-mobile-ios-app/Production/govuk_ios/Views/DVLA/DrivingLicenceSummaryView.swift at 8f1fe5da - Figma: none linked yet
- The app prototyping system's registered-to, which this follows (app-prototyping-system, exploration-2/components/registered-to)
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
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
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
Priory House
Chicksands
SG17 5TQ
Priory House
Chicksands
SG17 5TQ
HTML
<govuk-app-address>
Central Bedfordshire Council<br>
Priory House<br>
Chicksands<br>
SG17 5TQ
</govuk-app-address>
Inputs
| 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 |
The iOS, Android and Figma sources it was built from
Screenshots of the app's own component, to compare the examples with
iOS