1. Component Guide
  2. Form label
  3. As page heading
Form label example

As page heading

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/label", {
  is_page_heading: true,
  heading_size: "xl",
  text: "National Insurance number",
  html_for: "id-that-matches-input-4",
  hint_id: "should-match-aria-describedby-input-bold"
} %>