1. Component Guide
  2. Metadata block
  3. With custom margin bottom
Metadata block example

With custom 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 the margin-bottom values defined in the responsive-bottom-margin mixin

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/metadata", {
  first_published: "14 June 2014",
  last_updated: "10 September 2015",
  margin_bottom: 2
} %>