Skip to content

非公式 / UnofficialCloudflare, Inc. 非提携。アカウント情報は入力しないでください。Not affiliated with Cloudflare, Inc. Do not enter Cloudflare credentials here.Official docsこのサイトについてプライバシー

RtkFileMessageView

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

ファイルメッセージを描画するコンポーネントです。

プロパティ

プロパティ 型 必須 デフォルト 説明
iconPack IconPack1 ❌ defaultIconPack アイコンパック
name string ✅ - ファイル名
size number ✅ - ファイルサイズ
url string ✅ - ファイルの URL

使用例

基本的な使い方

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

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

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

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

function MyComponent() {
  return (
    <RtkFileMessageView
      name="example"
      size={42}
      url="example"
    />
  );
}

役に立ちましたか?