@govuk-react-bjss-pttg/warning-text
v0.10.7-b
Published
Styles children passed within a div and strong element, also positioning an 'Important' icon to the left.
Downloads
1
Keywords
Readme
WarningText
Import
import WarningText from '@govuk-react-bjss-pttg/warning-text';
Use the warning text component when you need to warn users about something important, such as legal consequences of an action, or lack of action, that they might take.
- https://govuk-react.github.io/govuk-react/?path=/docs/warning-text
- https://design-system.service.gov.uk/components/warning-text/
Properties
Prop | Required | Default | Type | Description
:--- | :------- | :------ | :--- | :----------
children
| | | ReactNode | Warning text to be displayed