Attachment example

With custom heading level

Default is h2.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/attachment", {
  heading_level: 3,
  attachment: {
    title: "Department for Transport information asset register",
    url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/747661/department-for-transport-information-asset-register.csv",
    filename: "department-for-transport-information-asset-register.csv",
    content_type: "text/csv",
    file_size: 20000
  }
} %>