# Warning text ## Introduction Use bold text with an exclamation icon if there are consequences - for example, a fine or prison sentence. ## Guidance Find out when to use the warning text component in your service in the [GOV.UK Design System](https://design-system.service.gov.uk/components/warning-text). ## Quick start examples ### Warning text [Preview this example in the Frontend review app](http://govuk-frontend-review.herokuapp.com/components/warning-text/preview) #### Markup
Name | Type | Required | Description |
---|---|---|---|
text (or) html | string | Yes | Text or HTML for the warning text content. If `html` is provided, the `text` argument is ignored. |
iconFallbackText | string | Yes | The fallback text for the icon |
classes | string | No | Optional additional classes to add to the warning-text container. |
attributes | object | No | Any extra HTML attributes (for example data attributes) to add to the warning-text container. |