Skip to content
Cloudflare Docs

RtkDraftAttachmentView

A component which renders the draft attachment to send

Properties

PropertyTypeRequiredDefaultDescription
attachment{ type: 'image' | 'file'; file: File; }-Attachment to display
iconPackIconPack1defaultIconPackIcon pack
tRtkI18n1useLanguage()Language

Usage Examples

Basic Usage

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

With Properties

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