Class: UiComponents::DaisyUi::DataDisplay::Chat::BubbleComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/ui_components/daisy_ui/data_display/chat/bubble_component.rb

Constant Summary collapse

CSS_CLASSES_DEFAULT =
%w[chat-bubble].freeze
CSS_CLASSES_VARIANTS =
(COLORS.map { |key| "chat-bubble-#{key}" }).freeze
CSS_CLASSES =
(CSS_CLASSES_DEFAULT + CSS_CLASSES_VARIANTS).freeze

Constants inherited from BaseComponent

BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES

Instance Attribute Summary

Attributes inherited from BaseComponent

#slot_order

Instance Method Summary collapse

Methods inherited from BaseComponent

tracks_slot_order

Constructor Details

#initialize(color: nil, **args) ⇒ BubbleComponent

Returns a new instance of BubbleComponent.



16
17
18
19
20
21
22
23
# File 'app/components/ui_components/daisy_ui/data_display/chat/bubble_component.rb', line 16

def initialize(
    color: nil,
    **args
  )
  @color = color

  super(**args)
end