Class: JetUi::Breadcrumbs::Component

Inherits:
JetUi::BaseComponent show all
Defined in:
app/components/jet_ui/breadcrumbs/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/breadcrumbs/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/breadcrumbs/component.rb', line 10

def call
   :nav, class: class_names('breadcrumbs', @options.delete(:class)),
                    'aria-label': 'Breadcrumb', **@options do
     :ol, content, class: 'breadcrumbs__list'
  end
end