Message
Conversation row composed from Avatar and Bubble.
Message coordinates the avatar and content column of a conversation row. Compose the actual message surface with Bubble, and use MessageFooter for delivery state or timestamps.
Deploying to prod real quick.
R
It's 4:55 PM. On a Friday.
It's a one-line change.
Delivered
R
It's always a one-line change.
Alright, let me take a look.
👍
Contract
Section titled “Contract”Overview
Machine-readable contract from Component Spec.
component: messageexport: Messageversion: 1attributes: data-refineui=message
Anatomy
| Part | data-refineui |
|---|---|
| root | message |
| avatar | message-avatar |
| content | message-content |
| footer | message-footer |
Variants
| Axis | Values |
|---|---|
| align | start, end |
Layout
| Property | Value |
|---|---|
| direction | logical |
| rtl | true |
Installation
Section titled “Installation”npm install @refineui/react @refineui/tokens yarn add @refineui/react @refineui/tokens pnpm add @refineui/react @refineui/tokens bun add @refineui/react @refineui/tokens import { Bubble, BubbleContent, Message, MessageContent, MessageFooter,} from "@refineui/react"; <Message align="end"> <MessageContent> <Bubble align="end"><BubbleContent>Deploying now.</BubbleContent></Bubble> <MessageFooter>Delivered</MessageFooter> </MessageContent></Message> API Reference
Section titled “API Reference”Message
Section titled “Message”| Prop | Default | Type | Description |
|---|---|---|---|
| align | "start" | "start" | "end" | Conversation-side alignment. |
MessageAvatar, MessageContent, and MessageFooter are composition slots. Omit the avatar for your own messages; add MessageAvatar with an Avatar for the other participant when needed. Use Bubble or BubbleGroup inside the content slot.