Sha256: 18154170164e51f0f10f9ffd56c62b76b43d3fe4c5a9f608eefc7837a6889c1c

Contents?: true

Size: 248 Bytes

Versions: 3

Compression:

Stored size: 248 Bytes

Contents

module GovukDesignSystem
  module TagHelper
    def govukTag(text: nil, html: nil, classes: "", attributes: {})
      attributes["class"] = class_names("govuk-tag", classes)
      content_tag("strong", (html || text), attributes)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk-design-system-rails-0.10.3 app/helpers/govuk_design_system/tag_helper.rb
govuk-design-system-rails-0.10.2 app/helpers/govuk_design_system/tag_helper.rb
govuk-design-system-rails-0.10.1 app/helpers/govuk_design_system/tag_helper.rb