Sha256: 515c737fee974a74fd28d5c8c31edf0cda96302dafdc394bb0aada9fc284095a
Contents?: true
Size: 931 Bytes
Versions: 20
Compression:
Stored size: 931 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/accordion' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK Accordion # # This helper is used for generating the accordion component from the # {https://design-system.service.gov.uk/components/accordion GDS - Components - Accordion} module Accordion # Generates the HTML for the GOV.UK Accordion component # # @param (see CCS::Components::GovUK::Accordion#initialize) # # @option (see CCS::Components::GovUK::Accordion#initialize) # # @return (see CCS::Components::GovUK::Accordion#render) def govuk_accordion(accordion_id, accordion_sections, **options) Components::GovUK::Accordion.new(context: self, accordion_id: accordion_id, accordion_sections: accordion_sections, **options).render end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems