Module: CCS::FrontendHelpers::GovUKFrontend::Input

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

Overview

GOV.UK Input

This helper is used for generating the input component from the GDS - Components - Text Input

Instance Method Summary collapse

Instance Method Details

#govuk_input(attribute, **options) ⇒ Object

Generates the HTML for the GOV.UK Text Input component



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

def govuk_input(attribute, **options)
  Components::GovUK::Field::Input::TextInput.new(context: self, attribute: attribute, **options).render
end