1. Collections Component Guide
  2. Action link
  3. With data attributes
Action link example

With data attributes

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/action_link", {
  text: "Coronavirus (COVID-19)",
  href: "/page",
  data: {
    attr_test: "hasDataAttribute"
  }
} %>