1. Static Component Guide
  2. Govspeak content
  3. Contact

Govspeak content example

Contact

How to call this example

<%= render "govuk_component/govspeak" {
  content: "<div class=\"contact\" id=\"contact_1017\">
      <div class=\"content\">
        <h3>Media enquiries</h3>
        <div class=\"vcard contact-inner\">
          <p class=\"adr\">
            <span class=\"street-address\">2 Marsham Street<br>London</span><br>
            <span class=\"postal-code\">SW1P 4DF</span>
          </p>
          <div class=\"email-url-number\">
            <p class=\"tel\"><span class=\"type\">Press enquiries</span> 020 7XXX XXXX</p>
            <p class=\"tel\"><span class=\"type\">Out of hours</span> 020 7XXX XXXX</p>
          </div>
          <p class=\"comments\">A comment about the contact</p>
        </div>
      </div>
    </div>
    "
} %>

How it looks

Media enquiries

2 Marsham Street
London

SW1P 4DF

A comment about the contact