Summary card example

With row data attributes

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

How it looks (preview)

Title

    key one
    value1

    How to call this example

    <%= render "govuk_publishing_components/components/summary_card", {
      title: "Title",
      rows: [
        {
          key: "key one",
          value: "value1",
          data: {
            module: "something"
          }
        }
      ]
    } %>