DyteMixedGrid
A grid component which handles screenshares, plugins and participants.
LIVE EDITOR
function CustomGrid() { const active = useDyteSelector((m) => m.participants.active).toArray(); const { meeting } = useDyteMeeting(); return ( <DyteMixedGrid participants={active} pinnedParticipants={[]} screenShareParticipants={[meeting.self]} plugins={[]} meeting={meeting} style={{ height: '400px', width: '100%' }} /> ); }
Preview
Props
aspectRatio
Aspect Ratio of participant tile Format: `width:height`
Default
'16:9'
Type
string
config
gap
Gap between participant tiles
Default
8
Type
number
gridSize
Grid size
Default
defaultGridSize
Type
GridSize
iconPack
layout
Grid Layout
Default
'row'
Type
"column" | "row"
meeting
Meeting object
Type
DyteClient
participants
pinnedParticipants
plugins
screenShareParticipants
size
Size
Type
"lg" | "md" | "sm" | "xl"
states
States object
Type
States