Skip to content

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

RtkGrid

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

グリッドの処理ロジックをすべて抽象化し、描画するメインのグリッドコンポーネントです。

プロパティ

プロパティ 型 必須 デフォルト 説明
aspectRatio string ✅ - 各参加者のアスペクト比
config UIConfig ❌ createDefaultConfig() 設定オブジェクト
gap number ✅ - 参加者同士の間隔
gridSize GridSize ✅ - グリッドサイズ
iconPack IconPack ❌ defaultIconPack アイコンパック
layout GridLayout ✅ - グリッドレイアウト
meeting Meeting ✅ - Meeting オブジェクト
overrides any ✅ - @deprecated
size Size ✅ - サイズ
states States ✅ - States オブジェクト
t RtkI18n ❌ useLanguage() 言語

使用例

基本的な使い方

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

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

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

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

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

役に立ちましたか?