1. Component Guide
  2. Print link
  3. With data attributes
Print link example

With data attributes

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/print_link", {
  data_attributes: {
    "track-category": "printButton",
    "track-action": "clicked",
    "track-label": "Print this page",
    module: "print-link"
  }
} %>