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

With page heading and hint

How it looks (preview)

Is it snowing?

Sleet or hail doesn’t count.

How to call this example

<%= render "govuk_publishing_components/components/radio", {
  name: "radio-group-heading",
  heading: "Is it snowing?",
  is_page_heading: true,
  hint: "Sleet or hail doesn’t count.",
  items: [
    {
      value: "yes",
      text: "Yes"
    },
    {
      value: "no",
      text: "No"
    }
  ]
} %>