Summary list example

With data attributes

Data attributes can be passed to individual items within the component as shown.

How it looks (preview)

Title, summary and body

Title
Ethical standards for public service providers

How to call this example

<%= render "govuk_publishing_components/components/summary_list", {
  title: "Title, summary and body",
  items: [
    {
      field: "Title",
      value: "Ethical standards for public service providers",
      data: {
        module: "something"
      }
    }
  ]
} %>