Class: Protos::ChatBubble::Content
- Inherits:
-
Protos::Component
- Object
- Phlex::HTML
- Protos::Component
- Protos::ChatBubble::Content
- Defined in:
- lib/protos/chat_bubble/content.rb
Constant Summary collapse
- STYLES =
DOCS: The main content of a chat bubble. This would normally be the text content of the message. It will be colored according to the type.
{ default: "", accent: "chat-bubble-accent", error: "chat-bubble-error", info: "chat-bubble-info", neutral: "chat-bubble-neutral", primary: "chat-bubble-primary", secondary: "chat-bubble-secondary", success: "chat-bubble-success", warning: "chat-bubble-warning" }.freeze
Instance Method Summary collapse
Methods inherited from Protos::Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template ⇒ Object
26 27 28 |
# File 'lib/protos/chat_bubble/content.rb', line 26 def view_template(&) div(**attrs, &) end |