Class: Protos::Breadcrumbs

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/breadcrumbs.rb,
lib/protos/breadcrumbs/crumb.rb

Defined Under Namespace

Classes: Crumb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#crumbObject



14
# File 'lib/protos/breadcrumbs.rb', line 14

def crumb(...) = render Crumb.new(...)

#view_template(&block) ⇒ Object

DOCS: A list of breadcrumbs (e.g links) for navigation daisyui.com/components/breadcrumbs/



8
9
10
11
12
# File 'lib/protos/breadcrumbs.rb', line 8

def view_template(&block)
  nav(**attrs) do
    ul(class: css[:list], &block)
  end
end