Class: JetUi::Stepper::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/jet_ui/stepper/component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Component

Returns a new instance of Component.



6
7
8
# File 'app/components/jet_ui/stepper/component.rb', line 6

def initialize(**options)
  @options = options
end

Instance Method Details

#callObject



10
11
12
13
14
15
# File 'app/components/jet_ui/stepper/component.rb', line 10

def call
   :nav, class: class_names('stepper', @options.delete(:class)), 'aria-label': 'Progress',
                    **@options do
     :ol, content, class: 'stepper__list'
  end
end