Govspeak content example

With margin bottom

The component accepts a number for margin bottom from 0 to 9 (0px to 60px) using the GOV.UK Frontend spacing scale. It defaults to no margin bottom, as spacing below is normally provided by elements within the component.

How it looks (preview)

This is a title

This is some body text with a link.

How to call this example

<%= render "govuk_publishing_components/components/govspeak", {
  margin_bottom: 9
} do %>
  <h2>This is a title</h2>
  <p>This is some body text with <a href="https://example.com">a link</a>.</p>
<% end %>