Class: PhlexKit::KbdGroup
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::KbdGroup
- 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
-
#initialize(**attrs) ⇒ KbdGroup
constructor
A new instance of KbdGroup.
- #view_template ⇒ Object
Methods inherited from BaseComponent
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_template ⇒ Object
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 |