Sha256: 1daa3fd9e4f070470cd9b63de567dcc4ab58bbb2034ca6f5154f1afcc9271717
Contents?: true
Size: 881 Bytes
Versions: 1
Compression:
Stored size: 881 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/details' module CCS module FrontendHelpers::GovUKFrontend # = GOV.UK Details # # This helper is used for generating the details component from the # {https://design-system.service.gov.uk/components/details GDS - Components - Details} module Details # Generates the HTML for the GOV.UK Details component # # @param (see CCS::Components::GovUK::Details#initialize) # # @option (see CCS::Components::GovUK::Details#initialize) # # @yield (see CCS::Components::GovUK::Details#render) # # @return (see CCS::Components::GovUK::Details#render) def govuk_details(summary_text, **options, &block) Components::GovUK::Details.new(context: self, summary_text: summary_text, **options).render(&block) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-0.1.0.rc.2 | lib/ccs/frontend_helpers/govuk_frontend/details.rb |