Skip to content

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

RtkSpotlightGrid

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

pinnedParticipants と participants の 2 つの参加者リストを描画するグリッドコンポーネントです。 レイアウトはデフォルトで row です。column 表示にカスタマイズできます。

  • pinnedParticipants[] の参加者は、より大きなグリッド内に描画します。
  • participants[] 配列の参加者は、より小さなグリッドに描画します。

プロパティ

プロパティ 型 必須 デフォルト 説明
aspectRatio string ✅ - 参加者タイルのアスペクト比。形式: width:height
config UIConfig ❌ createDefaultConfig() UI 設定
gap number ✅ - 参加者タイル間の間隔
gridSize GridSize1 ✅ - グリッドサイズ
iconPack IconPack ❌ defaultIconPack アイコンパック
layout GridLayout1 ✅ - グリッドレイアウト
meeting Meeting ✅ - Meeting オブジェクト
participants Peer[] ✅ - 参加者
pinnedParticipants Peer[] ✅ - ピン留めした参加者
size Size ✅ - サイズ
states States ✅ - States オブジェクト
t RtkI18n ❌ useLanguage() 言語

使用例

基本的な使い方

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

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

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

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

function MyComponent() {
  return (
    <RtkSpotlightGrid
      aspectRatio="example"
      gap={42}
      gridSize="md"
    />
  );
}

役に立ちましたか?