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