Class: PhlexKit::DrawerTitle

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/drawer/drawer_title.rb

Overview

See drawer.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ DrawerTitle

Returns a new instance of DrawerTitle.



4
# File 'app/components/phlex_kit/drawer/drawer_title.rb', line 4

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

Instance Method Details

#view_templateObject



5
# File 'app/components/phlex_kit/drawer/drawer_title.rb', line 5

def view_template(&) = h2(**mix({ class: "pk-drawer-title" }, @attrs), &)