Skip to content

非公式本サイトは非公式の日本語ドキュメントであり、Cloudflare 公式サイトではありません。最新情報はdevelopers.cloudflare.comをご確認ください。

RtkDraftAttachmentView

最終更新 Markdown で表示Agent セットアップ

送信する下書き添付ファイルを描画するコンポーネントです。

プロパティ

プロパティ 必須 デフォルト 説明
attachment { type: 'image' | 'file'; file: File; } - 表示する添付ファイル
iconPack IconPack1 defaultIconPack アイコンパック
t RtkI18n1 useLanguage() 言語

使用例

基本的な使い方

import { RtkDraftAttachmentView } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return <RtkDraftAttachmentView />;
}

プロパティを指定する場合

import { RtkDraftAttachmentView } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return (
    <RtkDraftAttachmentView
      attachment={{}}
    />
  );
}

役に立ちましたか?