Class: Flowbite::Breadcrumb
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Flowbite::Breadcrumb
- Defined in:
- app/components/flowbite/breadcrumb.rb
Overview
Renders a breadcrumb navigation component.
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'app/components/flowbite/breadcrumb.rb', line 23 def call content_tag(:nav, class: "flex", "aria-label": "Breadcrumb") do content_tag(:ol, class: "inline-flex items-center space-x-1 md:space-x-2 rtl:space-x-reverse") do items.each do |item| concat(item) end end end end |