Sha256: 096ec9b094a413e5c176e1a65b543963ac70d0030accf2f8643b14e693e2206f

Contents?: true

Size: 841 Bytes

Versions: 7

Compression:

Stored size: 841 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/ccs/header'

module CCS
  module FrontendHelpers
    module CCSFrontend
      # = CCS Header
      #
      # This helper is used for generating the header component from the
      # {https://github.com/Crown-Commercial-Service/ccs-frontend-project/tree/main/packages/ccs-frontend/src/ccs/components/header CCS - Components - Header}

      module Header
        # Generates the HTML for the CCS Header component
        #
        # @param (see CCS::Components::CCS::Header#initialize)
        #
        # @option (see CCS::Components::CCS::Header#initialize)
        #
        # @return (see CCS::Components::CCS::Header#render)

        def ccs_header(**options)
          Components::CCS::Header.new(context: self, **options).render
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ccs-frontend_helpers-2.1.0 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-2.0.0 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-1.2.0 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-1.1.2 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-1.1.1 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-1.1.0 lib/ccs/frontend_helpers/ccs_frontend/header.rb
ccs-frontend_helpers-1.1.0.beta0 lib/ccs/frontend_helpers/ccs_frontend/header.rb