Module: CCS::FrontendHelpers::GovUKFrontend::Tag
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/tag.rb
Overview
GOV.UK Tag
This helper is used for generating the tag component from the GDS - Components - Tag
Instance Method Summary collapse
-
#govuk_tag(text, colour = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Back link component.
Instance Method Details
#govuk_tag(text, colour = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Back link component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/tag.rb', line 22 def govuk_tag(text, colour = nil, **) Components::GovUK::Tag.new(context: self, text: text, colour: colour, **).render end |