Sha256: d39eb3ff4b7af40a2f34b04d0c948c1214f438b7bb7c1a6c48220337ac8ea1b4
Contents?: true
Size: 1.98 KB
Versions: 1
Compression:
Stored size: 1.98 KB
Contents
# frozen_string_literal: true require_relative '../../components/govuk/step_by_step_navigation' module CCS module FrontendHelpers::GovUKFrontend # = GOV.UK Step by step navigation # # This helper is used for generating the Step by step navigation component from the # {https://design-system.service.gov.uk/patterns/step-by-step-navigation/ GDS - Pages - Step by step navigation} # # To use this component you need the following from {https://github.com/alphagov/govuk_publishing_components GOV.UK Publishing Components}. # For the SCSS components you should add: # - {https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss _step-by-step-nav.scss} # - {https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss _step-by-step-nav-related.scss} # - {https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss _step-by-step-nav-header.scss} # For the JavaScript you should add: # - {https://github.com/alphagov/govuk_publishing_components/blob/main/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js step-by-step-nav.js} module StepByStepNavigation # Generates the HTML for the GOV.UK Step by step navigation component # # @param (see CCS::Components::GovUK::StepByStepNavigation#initialize) # # @option (see CCS::Components::GovUK::StepByStepNavigation#initialize) # # @return (see CCS::Components::GovUK::StepByStepNavigation#render) def govuk_step_by_step_navigation(step_by_step_navigation_sections, **options) Components::GovUK::StepByStepNavigation.new(context: self, step_by_step_navigation_sections: step_by_step_navigation_sections, **options).render end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ccs-frontend_helpers-0.1.0.rc.2 | lib/ccs/frontend_helpers/govuk_frontend/step_by_step_navigation.rb |