Sha256: ec7259d37411c16acfe53ad1355c8b869da9b2fd6b5e982c8e1aaf7c0cb4a5a1
Contents?: true
Size: 810 Bytes
Versions: 1
Compression:
Stored size: 810 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/back_link' module CCS module FrontendHelpers::GovUKFrontend # = GOV.UK Back Link # # This helper is used for generating the back link component from the # {https://design-system.service.gov.uk/components/back-link GDS - Components - Back link} module BackLink # Generates the HTML for the GOV.UK Back link component # # @param (see CCS::Components::GovUK::BackLink#initialize) # # @option (see CCS::Components::GovUK::BackLink#initialize) # # @return (see CCS::Components::GovUK::BackLink#render) def govuk_back_link(text, href, **options) Components::GovUK::BackLink.new(context: self, text: text, href: href, **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/back_link.rb |