1. Component Guide
  2. Form textarea
  3. With error items
Form textarea example

With error items

How it looks (preview)

Error: Descriptive link to the question with an error 1
Descriptive link to the question with an error 2

How to call this example

<%= render "govuk_publishing_components/components/textarea", {
  label: {
    text: "Can you provide more detail?"
  },
  name: "more-detail-error",
  error_items: [
    {
      text: "Descriptive link to the question with an error 1",
      href: "#example-error-1"
    },
    {
      text: "Descriptive link to the question with an error 2",
      href: "#example-error-2"
    }
  ]
} %>