Skip to content

RtkDraftAttachmentView

Last updated View as MarkdownAgent setup

A component which renders the draft attachment to send

Properties

Property Type Required Default Description
attachment { type: 'image' | 'file'; file: File; } - Attachment to display
iconPack IconPack1 defaultIconPack Icon pack
t RtkI18n1 useLanguage() 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={{}}
    />
  );
}

Was this helpful?