Sha256: fa49bcb9ca03a5c6383a63b47dd6b5f60c2a4f263e62936788cf9be2ae60548b
Contents?: true
Size: 966 Bytes
Versions: 2
Compression:
Stored size: 966 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/warning_text' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Warning text # # This helper is used for generating the warning text component from the # {https://design-system.service.gov.uk/components/warning-text GDS - Components - Warning text} module WarningText # Generates the HTML for the GOV.UK Warning text component # # @param (see CCS::Components::GovUK::WarningText#initialize) # # @option (see CCS::Components::GovUK::WarningText#initialize) # # @yield (see CCS::Components::GovUK::WarningText#render) # # @return (see CCS::Components::GovUK::WarningText#render) def govuk_warning_text(text = nil, **options, &) Components::GovUK::WarningText.new(context: self, text: text, **options).render(&) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-2.1.0 | lib/ccs/frontend_helpers/govuk_frontend/warning_text.rb |
ccs-frontend_helpers-2.0.0 | lib/ccs/frontend_helpers/govuk_frontend/warning_text.rb |