Module: CCS::FrontendHelpers::GovUKFrontend::WarningText
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/warning_text.rb
Overview
GOV.UK Warning text
This helper is used for generating the warning text component from the GDS - Components - Warning text
Instance Method Summary collapse
-
#govuk_warning_text(text = nil, **options) { ... } ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Warning text component.
Instance Method Details
#govuk_warning_text(text = nil, **options) { ... } ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Warning text component
24 25 26 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/warning_text.rb', line 24 def govuk_warning_text(text = nil, **, &) Components::GovUK::WarningText.new(context: self, text: text, **).render(&) end |