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
NameTypeDefaultDescription
idstring'id' attribute to place on the base HTML element
classBlockstringBlock name override in BEM style classes applied to all elements
classModifiersotherBEM style modifiers to apply to the base HTML element
classNamestringExtra 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>