1. Component Guide
  2. Lead paragraph
  3. Custom margin bottom
Lead paragraph example

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 having a margin bottom of 45px.

How it looks (preview)

This is some example text for a lead paragraph

How to call this example

<%= render "govuk_publishing_components/components/lead_paragraph", {
  text: "This is some example text for a lead paragraph",
  margin_bottom: 6
} %>