Skip to content

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

RtkSidebar

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

サイドバーを扱うコンポーネントです。表示するセクションと、デフォルトで開くセクションをカスタマイズできます。

プロパティ

プロパティ 型 必須 デフォルト 説明
config UIConfig ❌ createDefaultConfig() 設定
defaultSection RtkSidebarSection ✅ - デフォルトのセクション
enabledSections RtkSidebarTab[] ✅ - サイドバーで有効なセクション
iconPack IconPack ❌ defaultIconPack アイコンパック
meeting Meeting ✅ - Meeting オブジェクト
size Size ✅ - サイズ
states States ✅ - States オブジェクト
t RtkI18n ❌ useLanguage() 言語
view RtkSidebarView ✅ - ビューの種類

使用例

基本的な使い方

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

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

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

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

function MyComponent() {
  return (
    <RtkSidebar
      defaultSection={rtksidebarsection}
      enabledSections={[]}
      meeting={meeting}
    />
  );
}

役に立ちましたか?