Sha256: 2bbc92a07534155f546d5d6feed31d5f8bb20fe773cbe4b94980cb48bb3cd65e
Contents?: true
Size: 896 Bytes
Versions: 2
Compression:
Stored size: 896 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/fieldset' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Fieldset # # This helper is used for generating the fieldset component from the # {https://design-system.service.gov.uk/components/fieldset GDS - Components - Fieldset} module Fieldset # Generates the HTML for the GOV.UK Fieldset component # # @param (see CCS::Components::GovUK::Fieldset#initialize) # # @option (see CCS::Components::GovUK::Fieldset#initialize) # # @yield (see CCS::Components::GovUK::Fieldset#render) # # @return (see CCS::Components::GovUK::Fieldset#render) def govuk_fieldset(**options, &) Components::GovUK::Fieldset.new(context: self, **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/fieldset.rb |
ccs-frontend_helpers-2.0.0 | lib/ccs/frontend_helpers/govuk_frontend/fieldset.rb |