1. Component Guide
  2. Form error summary
  3. Default
Form error summary example

Default

How it looks (preview)

Message to alert the user to a problem goes here

Optional description of the errors and how to correct them

How to call this example

<%= render "govuk_publishing_components/components/error_summary", {
  id: "error-summary",
  title: "Message to alert the user to a problem goes here",
  description: "Optional description of the errors and how to correct them",
  items: [
    {
      text: "Descriptive link to the question with an error",
      href: "#example-error-1"
    }
  ]
} %>