Class: Protos::ChatBubble
- Inherits:
-
Component
- Object
- Phlex::HTML
- Component
- Protos::ChatBubble
show all
- Defined in:
- lib/protos/chat_bubble.rb,
lib/protos/chat_bubble/image.rb,
lib/protos/chat_bubble/footer.rb,
lib/protos/chat_bubble/header.rb,
lib/protos/chat_bubble/content.rb
Defined Under Namespace
Classes: Content, Footer, Header, Image
Constant Summary
collapse
- ALIGNMENTS =
DOCS: A chat bubble component that contains a message an possibly some metadata and an image. Each chat bubble would represent a single message in a larger chat history. daisyui.com/components/chat/
{
start: "chat-start",
end: "chat-end"
}.freeze
Instance Method Summary
collapse
Methods inherited from Component
#initialize
Instance Method Details
#content ⇒ Object
27
|
# File 'lib/protos/chat_bubble.rb', line 27
def content(...) = render Content.new(...)
|
29
|
# File 'lib/protos/chat_bubble.rb', line 29
def (...) = render Footer.new(...)
|
31
|
# File 'lib/protos/chat_bubble.rb', line 31
def (...) = render Header.new(...)
|
#image ⇒ Object
33
|
# File 'lib/protos/chat_bubble.rb', line 33
def image(...) = render Image.new(...)
|
#view_template ⇒ Object
23
24
25
|
# File 'lib/protos/chat_bubble.rb', line 23
def view_template(&)
div(**attrs, &)
end
|