Sha256: 545c72fc231f2d98d844880c28891844845d199b26b46963e3c83a45106e0abd

Contents?: true

Size: 866 Bytes

Versions: 20

Compression:

Stored size: 866 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/skip_link'

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

      module SkipLink
        # Generates the HTML for the GOV.UK Skip link component
        #
        # @param (see CCS::Components::GovUK::SkipLink#initialize)
        #
        # @option (see CCS::Components::GovUK::SkipLink#initialize)
        #
        # @return (see CCS::Components::GovUK::SkipLink#render)

        def govuk_skip_link(text, href = nil, **options)
          Components::GovUK::SkipLink.new(context: self, text: text, href: href, **options).render
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-1.1.2 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-1.1.1 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-1.1.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-1.1.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-1.0.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.5.0.beta1 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.5.0.beta0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.3.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.2.0 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.2 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.1 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.1.rc.1 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.0.rc.7 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.0.rc.6 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.0.rc.5 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.0.rc.4 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb
ccs-frontend_helpers-0.1.0.rc.3 lib/ccs/frontend_helpers/govuk_frontend/skip_link.rb