Module: CCS::FrontendHelpers::GovUKFrontend::Button
- Included in:
- CCS::FrontendHelpers::GovUKFrontend
- Defined in:
- lib/ccs/frontend_helpers/govuk_frontend/button.rb
Overview
GOV.UK Button
This helper is used for generating the button component from the GDS - Components - Button
Instance Method Summary collapse
-
#govuk_button(text, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK button component.
Instance Method Details
#govuk_button(text, **options) ⇒ ActiveSupport::SafeBuffer
Generates the HTML for the GOV.UK button component
22 23 24 |
# File 'lib/ccs/frontend_helpers/govuk_frontend/button.rb', line 22 def (text, **) Components::GovUK::Button.new(context: self, text: text, **).render end |