Module: CCS::FrontendHelpers::GovUKFrontend::Textarea
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/textarea.rb
Overview
GOV.UK Textarea
This helper is used for generating the textarea component from the GDS - Components - Textarea
Instance Method Summary collapse
-
#govuk_textarea(attribute, **options) ⇒ Object
Generates the HTML for the GOV.UK Textarea component.
Instance Method Details
#govuk_textarea(attribute, **options) ⇒ Object
Generates the HTML for the GOV.UK Textarea component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/textarea.rb', line 22 def govuk_textarea(attribute, **) Components::GovUK::Field::Input::Textarea.new(context: self, attribute: attribute, **).render end |