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