Sha256: 2b87d577ee30c33237db971cc82585cf0f29f6fe78e18c23af795aa8c2e8a582
Contents?: true
Size: 811 Bytes
Versions: 20
Compression:
Stored size: 811 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/tag' module CCS module FrontendHelpers module 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 end
Version data entries
20 entries across 20 versions & 1 rubygems