Page title example

Using design system template

This option allows the removal of top margin from the component so that it works within a Design System page template, where spacing above the title is already provided by padding on the wrapping div.

How it looks (preview)

My page title

How to call this example

<main class="govuk-main-wrapper">
  <%= render "govuk_publishing_components/components/title", {
  title: "My page title",
  margin_top: 0
} %>
</main>