Skip to content
roguelite labsAnthony Spezzano ↗
Prompt/Message

Message

Structured message row with avatar initial, sender name, timestamp, and slot for content.

Use and inspectUse this as a presentational interface around your own submit, stream, or state handlers. Reset preview only remounts the local example; it does not send a request or connect to a model.Next: inspect the source and wire its callback to a bounded backend action.
MessageStructured message row with avatar initial, sender name, timestamp, and slot for content.
PropTypeDefaultDescription
role*"user" | "assistant"Controls layout and avatar color
namestringSender display name
timestampstringTime string shown next to name
children*ReactNodeMessage body content