Skip to content

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

RtkSidebar

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

チャット、参加者、投票、プラグインの各パネルをタブで切り替える、フルスクリーンのサイドバーモーダルです。

プロパティ

プロパティ 型 必須 デフォルト 説明
meeting RealtimeKitClient ✅ - RealtimeKit の Meeting インスタンス
config UIConfig ❌ defaultConfig UI 設定オブジェクト
iconPack IconPack ❌ defaultIconPack カスタムアイコンパック
size 'lg' | 'md' | 'sm' | 'xl' ❌ 'sm' サイズのバリアント
states States ❌ - UI の States オブジェクト
defaultSection 'chat' | 'none' | 'participants' | 'plugins' | 'polls' ❌ 'chat' 初期表示するタブ
enabledSections SidebarSection[] ❌ ['chat', 'polls', 'participants', 'plugins'] 表示するサイドバーセクション
t RtkI18n ❌ - i18n の翻訳関数

使用例

基本的な使い方

import { RtkSidebar } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return <RtkSidebar meeting={meeting} />;
}

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

import { RtkSidebar } from "@cloudflare/realtimekit-react-native-ui";

function MyComponent() {
	return (
		<RtkSidebar
			meeting={meeting}
			defaultSection="chat"
			enabledSections={["chat", "participants", "polls"]}
			size="md"
		/>
	);
}

役に立ちましたか?