RtkMessageView
Last updated Oct 19, 2026
Properties
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
actions |
MessageAction[] |
✅ | - | List of actions to show in menu |
authorName |
string |
✅ | - | Author display label |
avatarUrl |
string |
✅ | - | Avatar image url |
hideAuthorName |
boolean |
✅ | - | Hides author display label |
hideAvatar |
boolean |
✅ | - | Hides avatar |
hideMetadata |
boolean |
✅ | - | Hides metadata (time) |
iconPack |
IconPack1 |
❌ | defaultIconPack |
Icon pack |
isEdited |
boolean |
✅ | - | Has the message been edited |
isSelf |
boolean |
✅ | - | Is the message sent by the current user |
messageType |
Message['type'] |
✅ | - | Type of message |
pinned |
boolean |
✅ | - | Is message pinned |
time |
Date |
✅ | - | Time when message was sent |
variant |
'plain' \| 'bubble' |
✅ | - | Appearance |
viewType |
'incoming' \| 'outgoing' |
✅ | - | Render |
Usage Examples
Basic Usage
import { RtkMessageView } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkMessageView />;
}
With Properties
import { RtkMessageView } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkMessageView
actions={[]}
authorName="example"
avatarUrl="example"
/>
);
}
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/realtime/realtimekit/humans/ui-kit/api-reference/react/rtkmessageview/#page","headline":"RtkMessageView","description":"API reference for RtkMessageView component (React Library)","url":"https://developers.cloudflare.com/realtime/realtimekit/humans/ui-kit/api-reference/react/rtkmessageview/","inLanguage":"en","image":"https://developers.cloudflare.com/realtime/realtimekit/humans/ui-kit/api-reference/react/rtkmessageview/og.png?v=96f888aebf34c924","dateModified":"2026-10-19","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: API reference for RtkMicrophoneSelector component (React Library) title: RtkMicrophoneSelector image: https://developers.cloudflare.com/realtime/realtimekit/humans/ui-kit/api-reference/react/rtkmicrophoneselector/og.png?v=77a1e186a7a36d61
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/realtime/llms.txt
Use this file to discover all available pages before exploring further.
Docs