1. Static Component Guide
  2. Govspeak content
  3. Inline attachment

Govspeak content example

Inline attachment

How to call this example

<%= render "govuk_component/govspeak" {
  content: "<p>testing my attachment <span class=\"inline-attachment\" id=\"attachment_1399340\">
      <a href=\"/government/uploads/system/uploads/attachment_data/file/498071/PHE_Payments_over__25k_Jun_15.csv\">testing</a>
      (<span class=\"type\"><abbr title=\"Comma-separated Values\">CSV</abbr></span>, <span class=\"file-size\">65.4KB</span>)</span> works in the middle of copy.
} %>

How it looks

testing my attachment testing (CSV, 65.4KB) works in the middle of copy.