DevactionUI.ChatBubble (devaction_ui v0.1.0)

Copy Markdown View Source

One message of the conversation with the AI. The AI speaks on the left, with its mark beside the bubble and the corner nearest the mark squared; the person speaks on the right in ink. A message that did something (a lesson sent, a task made) is drawn :highlight, in the amber of "the AI did this".

Summary

Functions

chat_bubble(assigns)

Attributes

  • from (:atom) (required) - Must be one of :ai, or :me.
  • highlight (:boolean) - an AI message that did something. Defaults to false.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • avatar - the AI's mark, drawn by the caller; only used for :ai.
  • inner_block (required)