1. Government Frontend Component Guide
  2. Summary list
  3. With custom link on section

Summary list example

With custom link on section

How it looks

Items

Item 1
Value 2
Item 2
Value 2
Item 3
Value 3

How to call this example

<%= render "govuk_publishing_components/components/summary_list", {
  edit: {
    href: "custom-link",
    link_text: "Reorder"
  },
  title: "Items",
  items: [
    {
      field: "Item 1",
      value: "Value 2"
    },
    {
      field: "Item 2",
      value: "Value 2"
    },
    {
      field: "Item 3",
      value: "Value 3"
    }
  ]
} %>