1. Collections Component Guide
  2. Form label
  3. With
Form label example

With

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/label", {
  text: "Label with an ID",
  id: "id-for-the-label",
  html_for: "id-that-matches-input-6"
} %>