Module: CCS::FrontendHelpers::GovUKFrontend::Tabs
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/tabs.rb
Overview
GOV.UK Tabs
This helper is used for generating the tabs component from the GDS - Components - Tabs
Instance Method Summary collapse
-
#govuk_tabs(items, title = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Tabs component.
Instance Method Details
#govuk_tabs(items, title = nil, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK Tabs component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/tabs.rb', line 22 def govuk_tabs(items, title = nil, **) Components::GovUK::Tabs.new(context: self, items: items, title: title, **).render end |