Components
Inset text
Use the inset text component to differentiate a block of text from the content that surrounds it.
Read the Design System guidance for inset text
Import
import { InsetText } from 'govuk-react/inset-text';Examples
Default
Code
<InsetText>
{testText}
</InsetText>Using a paragraph for contents
Code
<InsetText>
<Body marginBottom={0}>{testText}</Body>
</InsetText>API reference
InsetText
Use the inset text component to differentiate a block of text from the content that surrounds it.
No props of its own. Other props are passed to the element it renders.