- Figma: none linked yet
- SwiftUI: Text, joined with +
- Foundation: AttributedString
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.
Native 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.
Examples
A status before a date
HTML
<govuk-app-text size="subheadline"><govuk-app-strong>Expired</govuk-app-strong> 28 March 2026</govuk-app-text>
A time left
HTML
<govuk-app-text><govuk-app-strong>1 year 28 days</govuk-app-strong> remaining</govuk-app-text>
Inputs
It takes no attributes.
Content
The words to make bold. Put it inside a <govuk-app-text>, around the words, and it takes that text's size and colour.
Outputs
None.
Rules
- Bold only the words that say what the rest of the line is, such as Expired before a date.
- For a whole line in bold, give the text emphasis instead. For a heading, use the heading.
- Use it once in a line at most: more, and nothing stands out.
When not to use it
| When | Use instead |
|---|---|
| For a whole line in bold | govuk-app-text emphasis |
| For a heading | govuk-app-heading |
| For words that go somewhere | govuk-app-link |
The iOS, Android and Figma sources it was built from