OptionalcolorsPartial color overrides merged with built-in defaults. See WaitingRoomColors.
OptionalisWhether the local user is waiting for the host to admit them. Only used in 'guest' mode. When true, a spinner and waiting message are displayed.
OptionallabelsPartial label overrides merged with built-in defaults. See WaitingRoomLabels.
Determines which view is rendered.
'guest' -- Waiting/rejection screen for users who have not yet been admitted.'host' -- Management list for the room owner to admit or reject waiting users.OptionalonCalled when the host presses the "Admit" button for a waiting user. Receives the user's ID. Only used in 'host' mode.
OptionalonCalled when a rejected guest presses the "Go Back" button. Only used in 'guest' mode when wasRejected is true.
OptionalonCalled when the host presses the "Reject" button for a waiting user. Receives the user's ID. Only used in 'host' mode.
OptionalwaitingArray of users currently in the waiting room. Only used in 'host' mode.
OptionalwasWhether the local user was rejected by the host. Only used in 'guest' mode. When true, a rejection message is displayed instead of the spinner.
Props for the WaitingRoom component.
The component operates in two modes controlled by the
modeprop:'guest'-- Shows a waiting screen with a spinner while the user awaits admission, or a rejection message if the host denied entry.'host'-- Shows a scrollable list of users waiting to join, with Admit and Reject buttons for each.