Class: JetUi::Breadcrumbs::Component
- Inherits:
-
JetUi::BaseComponent
- Object
- ViewComponent::Base
- JetUi::BaseComponent
- JetUi::Breadcrumbs::Component
- Defined in:
- app/components/jet_ui/breadcrumbs/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/breadcrumbs/component.rb', line 6 def initialize(**) @options = end |
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 |
# File 'app/components/jet_ui/breadcrumbs/component.rb', line 10 def call content_tag :nav, class: class_names('breadcrumbs', @options.delete(:class)), 'aria-label': 'Breadcrumb', **@options do content_tag :ol, content, class: 'breadcrumbs__list' end end |