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.
Warning text with a text argument
Input
= govuk_warning_text(text: "You can be fined up to £5,000 if you do not register.")
<%= govuk_warning_text(text: "You can be fined up to £5,000 if you do not register.") %>
Warning text provided by a block with custom icon fallback text
Input
= govuk_warning_text(icon_fallback_text: "Danger") do
| You can be fined up to £5,000 if you do not register.
<%= govuk_warning_text(icon_fallback_text: "Danger") do %>You can be fined up to £5,000 if you do not register.
<% end %>