1. Component Guide
  2. Error alert
  3. With specified id attribute
Error alert example

With specified id attribute

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/error_alert", {
  id: "test-id",
  message: "Message to alert the user to a unsuccessful action goes here"
} %>