Components

Inset text

A block of text that is inset.

It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application.
<div class="govuk-inset-text">
  It can take up to 8 weeks to register a lasting
  power of attorney if there are no mistakes in the
  application.
</div>
<InsetText>
  It can take up to 8 weeks to register a lasting
  power of attorney if there are no mistakes in the
  application.
</InsetText>
Props
Name Type Default Description
id string - 'id' attribute to place on the base HTML element
classBlock string - Block name override in BEM style classes applied to all elements
classModifiers other - BEM style modifiers to apply to the base HTML element
className string - Extra classes to apply to the base HTML element

When to use this component

Use the inset text component to differentiate a block of text from the content that surrounds it, for example:

  • quotes
  • examples
  • additional information about the page

When not to use this component

Some users do not notice inset text if it’s used on complex pages or near to other visually prominent elements. For this reason, avoid using inset text as a way of highlighting very important information that users need to see.

If you need to draw attention to very important content, like legal information, use the warning text component instead.

How it works

Use inset text very sparingly - it’s less effective if it’s overused.

Stories

Standard

A standard Inset text.

It can take up to 8 weeks to register a lasting power of attorney if there are no mistakes in the application.
<div class="govuk-inset-text">
  It can take up to 8 weeks to register a lasting
  power of attorney if there are no mistakes in the
  application.
</div>
<InsetText>
  It can take up to 8 weeks to register a lasting
  power of attorney if there are no mistakes in the
  application.
</InsetText>