With custom data module
The component includes its own data-module
but others can be passed in addition if required, for example to apply tracking to an element. This will be included along with the components own data-module
.
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/print_link", {
data_attributes: {
module: "gem-track-click"
}
} %>