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