Sha256: 1aed63e0d8ffad4afd747d0f51fffe60e060a0c4eb3964b3123e1f2408910020

Contents?: true

Size: 933 Bytes

Versions: 3

Compression:

Stored size: 933 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/service_navigation'

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

      module ServiceNavigation
        # Generates the HTML for the GOV.UK Service navigation component
        #
        # @param (see CCS::Components::GovUK::ServiceNavigation#initialize)
        #
        # @option (see CCS::Components::GovUK::ServiceNavigation#initialize)
        #
        # @return (see CCS::Components::GovUK::ServiceNavigation#render)

        def govuk_service_navigation(**options)
          Components::GovUK::ServiceNavigation.new(context: self, **options).render
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/govuk_frontend/service_navigation.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/govuk_frontend/service_navigation.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/govuk_frontend/service_navigation.rb