Sha256: 64eb916e9cea924119e8ebd2a796affd57c17fd9afad94144f0b1d61383fcefa

Contents?: true

Size: 964 Bytes

Versions: 11

Compression:

Stored size: 964 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/field/input/password_input'

module CCS
  module FrontendHelpers
    module GovUKFrontend
      # = GOV.UK Password input
      #
      # This helper is used for generating the password input component from the
      # {https://design-system.service.gov.uk/components/password-input GDS - Components - Password Input}

      module PasswordInput
        # Generates the HTML for the GOV.UK Password Input component
        #
        # @param (see CCS::Components::GovUK::Input::PasswordInput#initialize)
        #
        # @option (see CCS::Components::GovUK::Input::PasswordInput#initialize)
        #
        # @return (see CCS::Components::GovUK::Input::PasswordInput#render)

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-1.1.2 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-1.1.1 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-1.1.0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-1.1.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-1.0.0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-0.5.0.beta1 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-0.5.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb
ccs-frontend_helpers-0.3.0 lib/ccs/frontend_helpers/govuk_frontend/password_input.rb