Skip to content

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

RtkChatSelectorUi

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

プロパティ

プロパティ 必須 デフォルト 説明
groups ChatGroup[] - 参加者
iconPack IconPack1 defaultIconPack アイコンパック
selectedGroupId string - 選択中の参加者
selfUserId string - 自分のユーザー ID
t RtkI18n useLanguage() 言語
unreadCounts Record<string, number> - 未読数

使用例

基本的な使い方

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

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

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

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

function MyComponent() {
  return (
    <RtkChatSelectorUi
      groups={[]}
      selectedGroupId="example"
      selfUserId="example"
    />
  );
}

役に立ちましたか?