Class: JetUi::Stepper::Component
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- JetUi::Stepper::Component
- Defined in:
- app/components/jet_ui/stepper/component.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ Component
constructor
A new instance of Component.
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 = end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 |
# File 'app/components/jet_ui/stepper/component.rb', line 10 def call content_tag :nav, class: class_names('stepper', @options.delete(:class)), 'aria-label': 'Progress', **@options do content_tag :ol, content, class: 'stepper__list' end end |