Module: CCS::FrontendHelpers::GovUKFrontend::Hint
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/hint.rb
Overview
GOV.UK Hint
This helper is used for generating the hint text component from the Government Design Systems
Instance Method Summary collapse
-
#govuk_hint(text = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Hint component.
Instance Method Details
#govuk_hint(text = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Hint component
23 24 25 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/hint.rb', line 23 def govuk_hint(text = nil, **, &) Components::GovUK::Hint.new(context: self, text: text, **).render(&) end |