Sha256: bc8135a64ab7c8eacd6c83fa13e11563c24ef2744aaf2b536924bf88226f00a9
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/hint' module CCS module FrontendHelpers::GovUKFrontend # = GOV.UK Hint # # This helper is used for generating the hint text component from the Government Design Systems module Hint # Generates the HTML for the GOV.UK Hint component # # @param (see CCS::Components::GovUK::Hint#initialize) # # @option (see CCS::Components::GovUK::Hint#initialize) # # @yield (see CCS::Components::GovUK::Hint#render) # # @return (see CCS::Components::GovUK::Hint#render) def govuk_hint(text = nil, **options, &block) Components::GovUK::Hint.new(context: self, text: text, **options).render(&block) 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/hint.rb |