Module: CCS::FrontendHelpers::GovUKFrontend::Radios

Included in:
CCS::FrontendHelpers::GovUKFrontend
Defined in:
lib/ccs/frontend_helpers/govuk_frontend/radios.rb

Overview

GOV.UK Radios

This helper is used for generating the radios component from the GDS - Components - Radios

Instance Method Summary collapse

Instance Method Details

#govuk_radios(attribute, radio_items, **options) ⇒ Object

Generates the HTML for the GOV.UK Radios component



22
23
24
# File 'lib/ccs/frontend_helpers/govuk_frontend/radios.rb', line 22

def govuk_radios(attribute, radio_items, **options)
  Components::GovUK::Field::Inputs::Radios.new(context: self, attribute: attribute, radio_items: radio_items, **options).render
end