1. Component Guide
  2. Print link
  3. With different href
Print link example

With different href

You can specify a alternative href URL that will override the default behaviour. When a href is specified the print link will render as an anchor tag and be displayed even when JavaScript is disabled.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/print_link", {
  href: "/print"
} %>