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.
{ none: "", primary: "chat-bubble-primary", secondary: "chat-bubble-secondary", accent: "chat-bubble-accent", info: "chat-bubble-info", success: "chat-bubble-success", warning: "chat-bubble-warning", error: "chat-bubble-error" }.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
34 35 36 |
# File 'lib/protos/chat_bubble/content.rb', line 34 def view_template(&) div(**attrs, &) end |