Sha256: 0f9c33404c31b0ec941016029e59aeaf13849ae5097ea8788eb0df2f1ef1fa67

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/summary_list'

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

    module SummaryList
      # Generates the HTML for the GOV.UK Summary list component
      #
      # @param (see CCS::Components::GovUK::SummaryList#initialize)
      #
      # @option (see CCS::Components::GovUK::SummaryList#initialize)
      #
      # @return (see CCS::Components::GovUK::SummaryList#render)

      def govuk_summary_list(summary_list_items, **options)
        Components::GovUK::SummaryList.new(context: self, summary_list_items: summary_list_items, **options).render
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccs-frontend_helpers-0.1.0.rc.2 lib/ccs/frontend_helpers/govuk_frontend/summary_list.rb