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