Sha256: c5cb288e4d2eb1743abdce52567700eef4cb0cddb7957cacbbe70612cf70cab4
Contents?: true
Size: 861 Bytes
Versions: 18
Compression:
Stored size: 861 Bytes
Contents
# frozen_string_literal: true require_relative '../../components/govuk/label' module CCS module FrontendHelpers module GovUKFrontend # = GOV.UK label # # This helper is used for generating the label component from the Government Design Systems module Label # Generates the HTML for the GOV.UK label component # # @param (see CCS::Components::GovUK::Label#initialize) # # @option (see CCS::Components::GovUK::Label#initialize) # # @yield (see CCS::Components::GovUK::Label#render) # # @return (see CCS::Components::GovUK::Label#render) def govuk_label(attribute, text = nil, **options, &block) Components::GovUK::Label.new(context: self, attribute: attribute, text: text, **options).render(&block) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems