Class: UiComponents::DaisyUi::DataDisplay::ChatComponent

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

Constant Summary collapse

ALIGNS =
%w[start end].freeze
CSS_CLASSES_DEFAULT =
%w[chat].freeze
CSS_CLASSES_VARIANTS =
(ALIGNS.map { |key| "chat-#{key}" }).freeze
CSS_CLASSES =
(
  CSS_CLASSES_DEFAULT +
  CSS_CLASSES_VARIANTS +
  Chat::HeaderComponent::CSS_CLASSES +
  Chat::BubbleComponent::CSS_CLASSES +
  Chat::FooterComponent::CSS_CLASSES
).freeze

Constants inherited from BaseComponent

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(align: nil, **args) ⇒ ChatComponent

Returns a new instance of ChatComponent.



33
34
35
36
37
38
39
40
# File 'app/components/ui_components/daisy_ui/data_display/chat_component.rb', line 33

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

  super(**args)
end