1. Collections Component Guide
  2. Form radio button
  3. With page heading
Form radio button example

With page heading

This adds a H1 element containing the text supplied.

How it looks (preview)

Is it raining?

How to call this example

<%= render "govuk_publishing_components/components/radio", {
  name: "radio-group-heading",
  heading: "Is it raining?",
  is_page_heading: true,
  items: [
      value: "yes",
      text: "Yes"
      value: "no",
      text: "No"
} %>