When to use it
Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. Pass an avatar for multi-person threads.
Native example
Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. Pass an avatar for multi-person threads.
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Text
import androidx.compose.runtime.*
import com.santi020k.lumen.*
@Composable
fun ConversationExample() {
Column(verticalArrangement = Arrangement.spacedBy(LumenSpacing.Md)) {
LumenMessage(avatar = { LumenAvatar(fallback = "AI", size = LumenAvatarSize.Sm) }) {
Text("Hi! I can summarize documents and draft replies.")
}
LumenMessage(from = LumenMessageSender.User) {
Text("Summarize the release notes in two sentences.")
}
}
}Reference
The primary shared and platform-specific options exposed by LumenMessage.
| API | Values or type | Default | Description |
|---|---|---|---|
| from / avatar | sender / optional leading content | assistant / none | Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. |
Native behavior
Assistant messages sit on surface-muted at the leading edge; user messages sit on brand-soft at the trailing edge. Pass an avatar for multi-person threads.
Content stays in reading order; nested links and actions remain reachable.
Shared component