Controls visibility.
Invoked when the modal should close.
Participant Tools:
Updates the search query.
Initial count badge displayed in the header.
OptionalonCustom handler for muting selected participants.
Mutes a participant in a media session if the current member has the necessary permissions.
The options for muting participants.
OptionalshowAlert?: ShowAlertOptionalonCustom direct message handler.
Sends a direct message to a participant if the current member has the necessary permissions.
The options for messaging participants.
OptionalshowAlert?: ShowAlertmessageParticipants({
coHostResponsibility: [{ name: "chat", value: true }],
participant: { name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
updateIsMessagesModalVisible: (isVisible) => setMessagesModalVisible(isVisible),
updateDirectMessageDetails: (participant) => setDirectMessageDetails(participant),
updateStartDirectMessage: (start) => setStartDirectMessage(start),
});
OptionalonCustom removal handler.
Render Overrides:
Removes a participant from the room if the user has the necessary permissions.
The options for removing a participant.
OptionalshowAlert?: ShowAlertremoveParticipants({
coHostResponsibility: [{ name: "participants", value: true }],
participant: { id: "123", name: "John Doe", islevel: "1" },
member: "currentMember",
islevel: "2",
showAlert: (alert) => console.log(alert.message),
coHost: "coHostMember",
participants: [{ id: "123", name: "John Doe", islevel: "1" }],
socket,
roomName: "room1",
updateParticipants: (updatedParticipants) => console.log(updatedParticipants),
});
OptionalRenderComponent used for main participant rendering.
OptionalRenderComponent for overflow/other participants.
State Parameters:
Parameter bundle providing helpers and state access.
Customization:
OptionalbackgroundModal surface color.
OptionalpositionAnchor position.
OptionalstyleAdditional styling applied to modal container.
Advanced Render Overrides:
OptionalrenderOverride to replace the default modal body content.
OptionalrenderOverride to replace the modal container wrapper.
Configuration options for the
ParticipantsModalcomponent.ParticipantsModalOptions
Modal Control: