Class: PhlexKit::KbdGroup

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/kbd/kbd_group.rb

Overview

Row of Kbd chips (e.g. ⌘ + K). See kbd.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ KbdGroup

Returns a new instance of KbdGroup.



4
5
6
# File 'app/components/phlex_kit/kbd/kbd_group.rb', line 4

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

Instance Method Details

#view_templateObject



8
9
10
# File 'app/components/phlex_kit/kbd/kbd_group.rb', line 8

def view_template(&)
  kbd(**mix({ class: "pk-kbd-group" }, @attrs), &)
end