Class: PhlexKit::BubbleReactions

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/bubble/bubble_reactions.rb

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(side: :bottom, align: :end, **attrs) ⇒ BubbleReactions

Returns a new instance of BubbleReactions.



3
4
5
6
7
# File 'app/components/phlex_kit/bubble/bubble_reactions.rb', line 3

def initialize(side: :bottom, align: :end, **attrs)
  @side = side.to_sym
  @align = align.to_sym
  @attrs = attrs
end

Instance Method Details

#view_templateObject



8
9
10
# File 'app/components/phlex_kit/bubble/bubble_reactions.rb', line 8

def view_template(&)
  div(**mix({ class: "pk-bubble-reactions", data: { slot: "bubble-reactions", side: @side, align: @align } }, @attrs), &)
end