Form radio button example

With error on form group

How it looks (preview)

How do you want to sign in?

Error: Please select one option

How to call this example

<%= render "govuk_publishing_components/components/radio", {
  heading: "How do you want to sign in?",
  name: "radio-group-error",
  id_prefix: "error",
  error_message: "Please select one option",
  items: [
    {
      value: "government-gateway",
      text: "Use Government Gateway"
    },
    {
      value: "govuk-verify",
      text: "Use GOV.UK Verify"
    }
  ]
} %>