Meeting UI Button Components: Toggles, Dialogs and Control Bars
How Cloudflare RealtimeKit UI Kit meeting buttons, permission-gated toggles, and leave or end dialogs work across web and mobile.
This page summarises Cloudflare RealtimeKit Humans UI Kit API reference entries for pre-built meeting controls: toggle buttons for media and side panels, dialogs for confirmations and settings, and screens for join and leave flows. You use these components when you are building a custom meeting UI instead of the default shell, but still want controls that respect RealtimeKit permissions and meeting state.
Humans UI Kit: when to use pre-built meeting buttons
Section titled “Humans UI Kit: when to use pre-built meeting buttons”A Humans UI Kit control is a drop-in button, dialog, or screen wired to a RealtimeKit meeting object (or equivalent client on native). The kit covers the actions participants expect in a video call—mute, camera, screen share, recording, livestream, breakout rooms, chat, participants list, and leaving the call—without reimplementing permission checks and visibility rules yourself.
| Kind of control | Typical job | Representative docs |
|---|---|---|
| Media toggle | Turn local mic, camera, or screen share on or off | rtk-mic-toggle, rtk-camera-toggle, rtk-screen-share-toggle |
| Host / privileged toggle | Start recording, livestream, mute-all, etc. | rtk-recording-toggle, rtk-livestream-toggle |
| Sidebar / overflow toggle | Open chat, participants, plugins, settings, “more” menu | RtkChatToggle, RtkParticipantToggle, RtkMoreToggle |
| Leave / end flow | Confirm leave, end for all, show meeting ended | rtk-leave-button, rtk-leave-meeting, rtk-ended-screen |
| Modal / dialog shell | Reusable confirmation or overlay UI | rtk-dialog, rtk-confirmation-modal |
Bindings exist for Angular (custom elements such as rtk-mic-toggle), Core (framework-agnostic custom elements), React and React Native (RtkMicToggle, etc.), plus iOS and Android control-bar widgets. Pick the package that matches your app stack; behaviour descriptions are largely the same across duplicates in the reference.
Mic, camera, and screen share toggles: how local media buttons behave
Section titled “Mic, camera, and screen share toggles: how local media buttons behave”rtk-mic-toggle and rtk-camera-toggle: mute and video on/off
Section titled “rtk-mic-toggle and rtk-camera-toggle: mute and video on/off”For web custom elements, Cloudflare describes mic and camera controls as simple toggles:
A button which toggles your microphone.
— Cloudflare, rtk-mic-toggle
A button which toggles your camera.
— Cloudflare, rtk-camera-toggle
On React Native, the same ideas add permission-aware hiding. The mic toggle “automatically hides if the participant lacks audio production permissions”; the camera toggle hides when video production permissions are missing (RtkMicToggle, RtkCameraToggle). Android mic and camera buttons additionally “listen to self audio/video events to update” their visual state (RtkMicToggleButton, RtkCameraToggleButton). iOS control-bar variants check system permissions before toggling (RtkAudioButtonControlBar, RtkVideoButtonControlBar). Front/rear switch is separate: RtkSwitchCameraButtonControlBar.
rtk-screen-share-toggle: start and stop screenshare
Section titled “rtk-screen-share-toggle: start and stop screenshare”The web/core screen-share control is documented as:
A button which toggles your screenshare.
— Cloudflare, rtk-screen-share-toggle
React Native adds that the button “automatically hides based on permissions and screenshare limits” (RtkScreenShareToggle).
Recording, livestream, and webinar controls: privileged and mode-gated buttons
Section titled “Recording, livestream, and webinar controls: privileged and mode-gated buttons”rtk-recording-toggle: who can see the record button
Section titled “rtk-recording-toggle: who can see the record button”Recording is not shown to every participant. Cloudflare states:
A button which toggles recording state of a meeting. Only a privileged user can perform this action, thus the button will not be visible for participants who don’t have the permission to record a meeting.
— Cloudflare, rtk-recording-toggle
On React Native, visibility is stricter: the toggle is “only visible for participants with recording permissions who are on stage” (RtkRecordingToggle). If your UI shows an empty slot where record should be, check both record permission and stage status, not just role name.
rtk-livestream-toggle and stage joins: host vs audience
Section titled “rtk-livestream-toggle and stage joins: host vs audience”To start or stop broadcasting a meeting livestream, the host-oriented toggle is:
A button for starting or stopping a meeting livestream. It appears only for participants who have permission to host the livestream.
— Cloudflare, rtk-livestream-toggle
Related pieces include a livestream activity indicator (RtkLivestreamIndicator), joining/leaving the livestream stage (RtkJoinLivestreamButton, RtkLiveStreamStageToggle), and webinar stage requests (RtkWebinarStageToggle). RtkJoinStage is a “join stage confirmation dialog with video preview and mic/camera toggles for webinar/livestream participants” (RtkJoinStage).
rtk-breakout-rooms-toggle: meeting object required
Section titled “rtk-breakout-rooms-toggle: meeting object required”Breakout UI visibility is toggled explicitly, and the reference calls out wiring:
A button which toggles visibility of breakout rooms. You need to pass the meeting object to it.
— Cloudflare, rtk-breakout-rooms-toggle
The same requirement appears on RtkBreakoutRoomsToggle (React). A toggle that does nothing usually means meeting was not passed.
Sidebar and overflow toggles: chat, participants, plugins, settings
Section titled “Sidebar and overflow toggles: chat, participants, plugins, settings”Several controls only open panels; they are not media switches.
- Chat: “Toggle button to open the chat sidebar panel. Hides if chat permissions are not available.” (RtkChatToggle)
- Participants: opens the participants sidebar and can show a badge with pending request count (RtkParticipantToggle)
- Plugins: opens the plugins sidebar; hides without plugin permissions (RtkPluginsToggle)
- Settings: opens the settings dialog; hides if no audio or video permissions (RtkSettingsToggle)
- More menu: overflow for extra meeting actions; React Native’s RtkMoreToggle can show a notification badge for pending requests; iOS RtkMoreButtonControlBar opens a bottom sheet with chat, polls, and participant list.
Host-only mute all is separate: RtkMuteToggle is “only visible for hosts with mute-all permissions.”
Leave meeting and end meeting for all: button vs dialog components
Section titled “Leave meeting and end meeting for all: button vs dialog components”Leaving is split into opening a confirmation UI versus executing leave/end actions—a common source of confusion.
rtk-leave-button: show or hide leave confirmation only
Section titled “rtk-leave-button: show or hide leave confirmation only”A button which toggles visilibility of the leave confirmation dialog.
— Cloudflare, rtk-leave-button
This control does not by itself leave the room; it toggles whether the leave confirmation dialog is visible. Optional presentation props appear in the reference, for example size="md" and variant="button" on rtk-leave-button. On Core, you can assign iconPack on the element after querySelector (rtk-leave-button). React usage is documented on RtkLeaveButton.
rtk-leave-meeting and platform dialogs: leave vs end for all
Section titled “rtk-leave-meeting and platform dialogs: leave vs end for all”The fuller leave experience is:
A component which allows you to leave a meeting or end meeting for all, if you have the permission.
— Cloudflare, rtk-leave-meeting
React examples pass an explicit meeting prop (RtkLeaveMeeting); React Native adds onClose for dismissing the sheet (RtkLeaveMeeting). iOS RtkLeaveDialog “presents leave and end meeting options” and changes options based on host permissions; you can handle .leaveMeeting vs .endMeeting in an onClick callback. Android uses RtkLeaveMeetingView with show(). The control-bar variant RtkEndMeetingControlBarButton can optionally show confirmation before ending.
On React Native, RtkDialogManager centralises modals for “leave confirmation, settings, join stage confirmation, and permissions messages.”
rtk-ended-screen and join buttons: before and after the call
Section titled “rtk-ended-screen and join buttons: before and after the call”After the meeting ends, rtk-ended-screen is “a screen which shows a meeting has ended.” For joining, RtkJoinButton performs the room join, shows “Joining…” while in progress, and disables after success; the iOS RtkJoinButton validates the participant name before joining.
rtk-dialog, rtk-confirmation-modal, and overlay patterns
Section titled “rtk-dialog, rtk-confirmation-modal, and overlay patterns”Generic shells are thin in the cluster text but important for custom flows:
A dialog component.
— Cloudflare, rtk-dialog
A confirmation modal.
— Cloudflare, rtk-confirmation-modal
rtk-overlay-modal is also described as “a confirmation modal.” React Native’s RtkDialog adds “optional close button” on a modal overlay. Use these when you need your own copy and actions while matching kit styling; use RtkLeaveMeeting / RtkLeaveDialog when you want leave/end behaviour built in.
Common mistakes when wiring UI Kit buttons
Section titled “Common mistakes when wiring UI Kit buttons”- Using
rtk-leave-buttonexpecting an immediate leave — it only toggles confirmation visibility (rtk-leave-button); pair it with rtk-leave-meeting or a platform dialog. - Omitting
meetingon breakout or leave components — breakout toggle and several leave flows require the meeting object (rtk-breakout-rooms-toggle, RtkLeaveMeeting). - Assuming a missing button is a CSS bug — many toggles intentionally hide when permissions, stage, or mode (livestream/webinar) do not apply (RtkRecordingToggle, RtkLiveStreamStageToggle).
- Mixing packages — React imports use
@cloudflare/realtimekit-react-ui(see RtkLeaveButton); Angular/Core usertk-*custom elements; native apps use platform-specific control-bar classes documented under ios and android paths.
How to check this on your site
Section titled “How to check this on your site”-
In a test build, join a meeting with two roles (host and guest). Compare which toggles appear on each client against the permission rules in rtk-recording-toggle, rtk-livestream-toggle, and RtkChatToggle.
-
Tap mic, camera, and screen-share toggles and confirm state matches self media events (especially on Android per RtkMicToggleButton and RtkCameraToggleButton).
-
Trigger leave via rtk-leave-button; verify the confirmation UI opens, then complete leave or “end for all” only when the host uses rtk-leave-meeting or the platform dialog (RtkLeaveDialog).
-
After ending the session, confirm rtk-ended-screen (or RtkEndedScreen) is shown.
-
You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page does not match the behaviour you see in your app or the linked Cloudflare reference, email yimasynthetic@gmail.com with the page URL and the exact sentence you think is wrong, and we will clarify or correct it.