콘텐츠로 이동
RefineUI

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.

Overview

Machine-readable contract from Component Spec.

component: messageexport: Messageversion: 1attributes: data-refineui=message

Anatomy

Partdata-refineui
rootmessage
avatarmessage-avatar
contentmessage-content
footermessage-footer

Variants

AxisValues
alignstart, end

Layout

PropertyValue
directionlogical
rtltrue
npm install @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>
PropDefaultTypeDescription
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.