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