Sha256: 20aca22860e341371b947e9a40440dede029b71d547ab00e579c439c238e0f0e
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true require_relative '../../components/govuk/notification_banner' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Notification Banner # # This helper is used for generating the notification banner component from the # {https://design-system.service.gov.uk/components/notification-banner GDS - Components - Notification banner} module NotificationBanner # Generates the HTML for the GOV.UK Notification banner component # # @param (see CCS::Components::GovUK::NotificationBanner#initialize) # # @option (see CCS::Components::GovUK::NotificationBanner#initialize) # # @yield (see CCS::Components::GovUK::NotificationBanner#render) # # @return (see CCS::Components::GovUK::NotificationBanner#render) def govuk_notification_banner(text = nil, success_banner = nil, **options, &) Components::GovUK::NotificationBanner.new(context: self, text: text, success_banner: success_banner, **options).render(&) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-2.1.0 | lib/ccs/frontend_helpers/govuk_frontend/notification_banner.rb |
ccs-frontend_helpers-2.0.0 | lib/ccs/frontend_helpers/govuk_frontend/notification_banner.rb |