Class: PhlexKit::BreadcrumbLink

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

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(href: "#", **attrs) ⇒ BreadcrumbLink

Returns a new instance of BreadcrumbLink.



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

def initialize(href: "#", **attrs)
  @href = href
  @attrs = attrs
end

Instance Method Details

#view_templateObject



7
# File 'app/components/phlex_kit/breadcrumb/breadcrumb_link.rb', line 7

def view_template(&) = a(**mix({ href: @href, class: "pk-breadcrumb-link" }, @attrs), &)