LanternUI.Components.Message (LanternUI v0.8.2)

Copy Markdown View Source

Chat message rows with optional avatar, metadata, and footer. No Fluxon equivalent.

The component provides visual alignment and tone. The host owns the semantic author label and the message content:

<.message align="end" tone="primary">
  <:avatar><.avatar initials="AL" /></:avatar>
  <:header>You</:header>
  Your message text.
  <:footer>Just now</:footer>
</.message>

align accepts start or end, and tone accepts surface or primary.

Summary

Functions

message(assigns)

Attributes

  • align (:string) - Defaults to "start". Must be one of "start", or "end".
  • tone (:string) - Defaults to "surface". Must be one of "primary", or "surface".
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • avatar
  • header
  • footer
  • inner_block