チャット、参加者、投票、プラグインの各パネルをタブで切り替える、フルスクリーンのサイドバーモーダルです。
| プロパティ | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
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"
/>
);
}