Form error message example

Default

How it looks (preview)

Error: Please enter your National Insurance Number

How to call this example

<%= render "govuk_publishing_components/components/error_message", {
  text: "Please enter your National Insurance Number",
  id: "error_id"
} %>