Class: PhlexKit::BreadcrumbPage

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/breadcrumb/breadcrumb_page.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ BreadcrumbPage

Returns a new instance of BreadcrumbPage.



3
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_page.rb', line 3

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



4
5
6
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_page.rb', line 4

def view_template(&)
  span(**mix({ class: "pk-breadcrumb-page", role: "link", aria: { disabled: true, current: "page" } }, @attrs), &)
end