One turn in a conversation.
The author is a real element rather than a colour or an alignment, so who said what survives for a reader who cannot see the layout. Alignment alone is how a transcript becomes unattributable.
Everything known about an answer goes in footer - the receipt, the citations, the confidence. It sits after the content because a reader wants the answer first and the provenance second.
import { Message } from '@redrob-labs/ui';
| Prop | Type | Notes |
|---|---|---|
role |
'user' | 'assistant' | 'system' |
|
author |
string |
Who said it. Defaults to "You" or "Redrob" by role. |
mark |
React.ReactNode |
Overrides the derived initials in the corner mark. |
footer |
React.ReactNode |
Receipts, citations, confidence - what is known about this answer. |
className |
string |
|
children |
React.ReactNode |