一个处理屏幕共享、插件和参与者的网格组件。
| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
aspectRatio |
string |
✅ | - | 参与者图块的宽高比。格式:width:height |
config |
UIConfig |
❌ | createDefaultConfig() |
UI 配置 |
gap |
number |
✅ | - | 参与者图块之间的间距 |
gridSize |
GridSize1 |
✅ | - | 网格大小 |
iconPack |
IconPack |
❌ | defaultIconPack |
图标包 |
layout |
GridLayout1 |
✅ | - | 网格布局 |
meeting |
Meeting |
✅ | - | Meeting 对象 |
participants |
Peer[] |
✅ | - | 参与者 |
pinnedParticipants |
Peer[] |
✅ | - | 已固定的参与者 |
plugins |
RTKPlugin[] |
✅ | - | 活跃的插件 |
screenShareParticipants |
Peer[] |
✅ | - | 屏幕共享参与者 |
size |
Size |
✅ | - | 尺寸 |
states |
States |
✅ | - | States 对象 |
t |
RtkI18n |
❌ | useLanguage() |
语言 |
import { RtkMixedGrid } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkMixedGrid />;
}import { RtkMixedGrid } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkMixedGrid
aspectRatio="example"
gap={42}
gridSize="md"
/>
);
}