Skip to content
Cloudflare Docs

RtkFileMessageView

A component which renders a file message.

Properties

PropertyTypeRequiredDefaultDescription
iconPackIconPack1defaultIconPackIcon pack
namestring-Name of the file
sizenumber-Size of the file
urlstring-Url of the file

Usage Examples

Basic Usage

import { RtkFileMessageView } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkFileMessageView />;
}

With Properties

import { RtkFileMessageView } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkFileMessageView
name="example"
size={42}
url="example"
/>
);
}