1. Government Frontend Component Guide
  2. Attachment link
  3. With target blank
Attachment link example

With target blank

How it looks

How to call this example

<%= render "govuk_publishing_components/components/attachment_link", {
  attachment: {
    title: "Temporary snow ploughs: guidance note",
    url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/259634/temporary-snow-ploughs.pdf"
  },
  target: "_blank"
} %>