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