Sha256: cc396f1d9b7b1afdba000bcdd9cd7e8c46578784815c57ed8eea196cea4ab527

Contents?: true

Size: 761 Bytes

Versions: 1

Compression:

Stored size: 761 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/govuk/tag'

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

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

      def govuk_tag(text, colour = nil, **options)
        Components::GovUK::Tag.new(context: self, text: text, colour: colour, **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/tag.rb