@govuk-react/warning-text

Styles children passed within a div and strong element, also positioning an 'Important' icon to the left.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@govuk-react/warning-text
0.10.14 months ago4 years agoMinified + gzip package size for @govuk-react/warning-text in KB

Readme

WarningText

Import

import WarningText from '@govuk-react/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