Skip to content

RtkMixedGrid

A grid component which handles screenshares, plugins and participants.

Properties

PropertyTypeRequiredDefaultDescription
aspectRatiostring✅-Aspect Ratio of participant tile Format: width:height
configUIConfig❌createDefaultConfig()UI Config
gapnumber✅-Gap between participant tiles
gridSizeGridSize1✅-Grid size
iconPackIconPack❌defaultIconPackIcon Pack
layoutGridLayout1✅-Grid Layout
meetingMeeting✅-Meeting object
participantsPeer[]✅-Participants
pinnedParticipantsPeer[]✅-Pinned Participants
pluginsRTKPlugin[]✅-Active Plugins
screenShareParticipantsPeer[]✅-Screenshare Participants
sizeSize✅-Size
statesStates✅-States object
tRtkI18n❌useLanguage()Language

Usage Examples

Basic Usage

import { RtkMixedGrid } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkMixedGrid />;
}

With Properties

import { RtkMixedGrid } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkMixedGrid
aspectRatio="example"
gap={42}
gridSize="md"
/>
);
}