Sha256: a139e8bafb1c41638799508d05b1bb5560eb8d4815070743a6b168cc48a2507f
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/fieldset' module CCS module FrontendHelpers::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, &block) Components::GovUK::Fieldset.new(context: self, **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/fieldset.rb |