Sha256: 4400f83ebdde829c75405b3005c8460bd334c80cbba9d2c1f213ba91badd4f9e
Contents?: true
Size: 1.11 KB
Versions: 20
Compression:
Stored size: 1.11 KB
Contents
require 'action_view' module CCS module Components module GovUK class StepByStepNavigation < Base class Section < Base class Content # = GOV.UK Step by step navigation section content paragraph # # Generates the paragraph HTML for the step by step navigation section content # # @!attribute [r] text # @return [String] Text for the paragraph class Paragraph include ActionView::Context include ActionView::Helpers private attr_reader :text public # @param text [String] the text for the paragraph def initialize(text:) @text = text end # Generates the HTML for the GOV.UK Step by step navigation section content paragraph # # @return [ActiveSupport::SafeBuffer] def render tag.p(text, class: 'gem-c-step-nav__paragraph') end end end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems