Print link example

With child data attributes

Data attributes can be passed to the link/button as shown.

Note that the component does not include built in tracking. If this is required consider using the GA4 link tracker.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/print_link", {
  child_data_attributes: {
    an_attribute: "some_value"
  }
} %>