1. Government Frontend Component Guide
  2. Form radio button
  3. With hint on form group

Form radio button example

With hint on form group

How it looks

You’ll need to prove your identity using one of the following methods

How to call this example

<%= render "govuk_publishing_components/components/radio", {
  name: "radio-group-error",
  id_prefix: "hint",
  hint: "You’ll need to prove your identity using one of the following methods",
  items: [
    {
      value: "government-gateway",
      text: "Use Government Gateway"
    },
    {
      value: "govuk-verify",
      text: "Use GOV.UK Verify"
    }
  ]
} %>