Components
Each component, drawn live from its definition file, beside the app’s own screenshots.
GOV.UK app components
-
Address
<govuk-app-address>Shows a person's name and postal address, such as who a vehicle is registered to, or who holds a driving licence.
-
Banner
<govuk-app-banner>Tells the user something they should know now, on the screen it's about: an alert on Home, such as an emergency, or a warning, such as that driving without tax can invalidate their insurance. It can have a link to find out more, and can be closed.
-
Bulleted list
<govuk-app-bulleted-list>Lists a few short points, each after a bullet, usually finishing a sentence that comes before it, such as what the app stores about the user or what sharing statistics shares.
-
Button
<govuk-app-button>Lets the user take an action, such as continuing a journey, confirming a choice or removing something. It is the app's own button, in five variants: primary, secondary, grouped secondary, compact and destructive, and a sixth, black, for a green screen.
-
Button stack
<govuk-app-button-stack>Holds a screen's main action, and any way out of it, at the bottom of the screen under a divider, where they stay as the content scrolls. Used on screens that ask the user to do something, such as confirm, agree or continue.
-
Chat answer
<govuk-app-chat-answer>Shows GOV.UK Chat's answer to a question, on a white card the width of the conversation, with the GOV.UK pages it used and a warning to check them. Also GOV.UK Chat's welcome message, at the start of a new chat.
-
Chat example questions
<govuk-app-chat-example-questions>Suggests questions to ask GOV.UK Chat, at the start of a new chat, under the welcome message. Pressing one asks it.
-
Chat input
<govuk-app-chat-input>Where the user asks GOV.UK Chat a question, pinned below the conversation: a field that grows as they type, a send button once there's a question, and a menu of things to do with the chat, such as clearing it.
-
Chat loading
<govuk-app-chat-loading>Shows that GOV.UK Chat is busy: Sending... while the user's question is sent, then Generating your answer…, with the app's animation, until the answer comes.
-
Chat question
<govuk-app-chat-question>Shows a question the user asked GOV.UK Chat, in a dark blue bubble at the right of the conversation.
-
Crown
<govuk-app-crown>Ends the home screen: the crown, which grows and fades in as the user scrolls to the end, so they can tell there is nothing more below it.
-
Grouped list
<govuk-app-grouped-list>A section of rows on a rounded card, as on the Settings screen: rows that go to another screen, open a web page, switch something on or off, or show a value. Each section can have a title above it and a footer below.
-
Home header
<govuk-app-home-header>Tops the home screen: the GOV.UK wordmark on blue, and the search field the user starts a search of GOV.UK from. It takes the place of the navigation bar, which the home screen hides.
-
Labelled icon
<govuk-app-labelled-icon>Shows a short fact with an icon that says what kind of fact it is, such as a vehicle's year with a calendar, its fuel with a pump, or its colour with a palette.
-
Link
<govuk-app-link>Makes a few words of a line a link, such as a GOV.UK page named in one of GOV.UK Chat's answers.
-
Link card
<govuk-app-link-card>Makes one destination stand out, on a card of its own that's a link, with its name large and bold, such as the user's council on Home. A description above the name can say what it's for.
-
Menu button
<govuk-app-menu-button>Offers a few more things the user can do with something on a card, such as a vehicle or a driving licence, without crowding the card: a round “…” button that opens a menu of them.
-
Number plate
<govuk-app-number-plate>Shows a vehicle's registration number as it looks on the vehicle: on a yellow number plate, in the DVLA's own typeface. Small on a vehicle's card, large on its detail screen. A white front plate, blank, stands for any vehicle, such as on a search for one.
-
Section
<govuk-app-section>Groups part of a screen under a title, with a line saying what it's for if it needs one, and spaces it from what's above, so a long screen reads as a few clear parts: such as Check vehicle details, Status or Registered to.
-
Section heading
<govuk-app-section-heading>Heads a section of a screen, such as a widget on the home screen, with an action for the whole section beside it if it has one, such as Edit or See all.
-
Summary columns
<govuk-app-summary-columns>Lays out a few short facts side by side, in equal columns with a divider between them, so they can be taken in at a glance: a vehicle's year, fuel and colour, a driver's offences and points, or a vehicle's tax and MOT.
-
Text field
<govuk-app-text-field>Asks the user to type a short answer, such as their postcode, under a heading asking the question, with a hint of what to type and, if what they typed won't do, an error saying what to do.
Native components
-
Full-screen cover
<govuk-app-full-screen-cover>Presents a screen over the one the user was on, covering it entirely, for a journey that takes over the app until it's finished or closed, such as adding a driver and vehicles account. Unlike a sheet, nothing of the screen behind shows.
-
Heading
<govuk-app-heading>Titles a screen, or a section of one. Its level says where it sits in the screen's outline, for screen readers; its size, which of the app's text styles it is drawn in.
-
Navigation bar
<govuk-app-nav-bar>Says which screen the user is on, takes them back to the screen they came from, and holds the screen's actions, such as close, done or edit. It sits at the top of every screen that isn't a top-level one, and of some that are.
-
Screen
<govuk-app-screen>Lays out one screen of the app: the navigation bar at the top, the content, which scrolls, and the tab bar or a button stack at the bottom. Write a screen's components inside it in order, top to bottom.
-
Search field
<govuk-app-search-field>Lets the user type what they're looking for and search for it, such as searching GOV.UK from the home screen, or filtering a list of countries.
-
Segmented control
<govuk-app-segmented-control>Switches between two or three views of the same thing, side by side, such as a driving account's Vehicles and Licence, or Your topics and All topics.
-
Sheet
<govuk-app-sheet>Presents a screen over the one the user was on, for a task they finish or cancel before going back, such as signing out, finding their local council or choosing a country. The screen it was presented from is set back behind it.
-
Stack
<govuk-app-stack>Lays out a few components in a row or a column, lined up and spaced as a screen needs, where no other component already does: such as a vehicle's number plate and menu button side by side on the right of its card, as the future driving designs show them.
-
Tab bar
<govuk-app-tab-bar>Moves between the app's top-level sections: Home, Chat and Settings. It floats at the bottom of every screen in those sections, and shows which one the user is in.
-
Text
<govuk-app-text>A paragraph of the app's text: Body, as most of it is, or a smaller style for details such as dates, captions and supporting information.
-
Toggle
<govuk-app-toggle>Switches something on or off straight away, such as sharing app usage statistics.
Proposed components
These aren’t in the app yet. They’re proposed, from designs for it, so they may change, or never ship.
-
Card header
<govuk-app-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.
-
Count
<govuk-app-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.
-
Search box
<govuk-app-search-box>Lets the user type what they're looking for where they are and search for it, on a card of its own with a search button, such as a vehicle's registration to check its tax and MOT. A hint of what to type, such as a blank number plate, can sit inside it.
-
Status
<govuk-app-status>Shows the state of something with a deadline or a validity, such as a vehicle's tax or MOT, or a driving licence: an icon for its state, then what it is and how it stands, such as Valid, 23 days, or Expired.
-
Strong
<govuk-app-strong>Makes a few words of a line bold, where they say what the rest of it is, such as Expired before a date, or 1 year 28 days before remaining.