Skip to main content
Preview This is a design system preview environment for main branch

Internal review app NHS.UK frontend

Use design system guidance and examples to build consistent, accessible NHS services for the public and staff.

Inset text

These examples are used for automated tests and may not follow service manual best practice.

Information:

You can report any suspected side effect using the Yellow Card safety scheme

Code

Markup

<div class="nhsuk-inset-text">
  <span class="nhsuk-u-visually-hidden">Information: </span>
  <p>You can report any suspected side effect using the Yellow Card safety scheme</p>
</div>

Macro

{% from "inset-text/macro.njk" import insetText -%}

{{ insetText({
  text: "You can report any suspected side effect using the Yellow Card safety scheme"
}) }}
Information:

You can report any suspected side effect using the Yellow Card safety scheme.

Code

Markup

<div class="nhsuk-inset-text">
  <span class="nhsuk-u-visually-hidden">Information: </span>
  <p>You can report any suspected side effect using the <a href="#">Yellow Card safety scheme</a>.</p>
</div>

Macro

{% from "inset-text/macro.njk" import insetText -%}

{{ insetText({
  html: '<p>You can report any suspected side effect using the <a href="#">Yellow Card safety scheme</a>.</p>'
}) }}
Information:

You can report any suspected side effect using the Yellow Card safety scheme.

Code

Markup

<div class="nhsuk-inset-text">
  <span class="nhsuk-u-visually-hidden">Information: </span>
  <p>You can report any suspected side effect using the <a href="#">Yellow Card safety scheme</a>.</p>
</div>

Macro

{% from "inset-text/macro.njk" import insetText -%}

{% call insetText() -%}
<p>You can report any suspected side effect using the <a href="#">Yellow Card safety scheme</a>.</p>
{%- endcall %}