Attachment example

With preview link

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/attachment", {
  attachment: {
    title: "Consular data: February 2018",
    url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/687542/February_2018_Consular_MI.csv",
    filename: "February_2018_Consular_MI.csv",
    content_type: "text/csv",
    file_size: 51496,
    preview_url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/687542/February_2018_Consular_MI.csv/preview"
  }
} %>