Govspeak content example
  
  
Attachment
Attachment component rendered within Govspeak
How it looks (preview)
An attachment as a block
Another attachment as a block
How to call this example
<%= render "govuk_publishing_components/components/govspeak", {} do %>
  <p>An attachment as a block</p>
<%= render "govuk_publishing_components/components/attachment",
    attachment: { url: "https://example.com/file.odt",
                  title: "Attachment",
                  file_size: 1024,
                  content_type: "application/vnd.oasis.opendocument.text" }
%>
<p>Another attachment as a block</p>
<%= render "govuk_publishing_components/components/attachment",
    attachment: { url: "https://example.com/file.odt",
                  title: "Attachment",
                  file_size: 1024,
                  content_type: "application/vnd.oasis.opendocument.text",
                  alternative_format_contact_email: "defra.helpline@defra.gsi.gov.uk" }
%>
<% end %>