1. Component Guide
  2. Attachment
  3. Embedded in govspeak
Attachment example

Embedded in govspeak

This component can be embedded in Govspeak with the [Attachment:] code.

How it looks (preview)

Some text.

BEIS Information Asset Register

How to call this example

<%= render "govuk_publishing_components/components/govspeak" do %>
  <p>Some text.</p>
  <%= render "govuk_publishing_components/components/attachment", {
  attachment: {
    title: "BEIS Information Asset Register",
    url: "https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/744083/BEIS_Information_Asset_Register_.ods",
    filename: "BEIS_Information_Asset_Register_.ods",
    content_type: "application/vnd.oasis.opendocument.spreadsheet",
    file_size: 20000
} %>
<% end %>