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