Meeting Control Bar Components, Variants, and Custom Buttons
How RealtimeKit UI Kit control bars, meeting toggles, and custom controlbar buttons work, including required props and platform differences.
This page summarises Cloudflare documentation for the RealtimeKit Humans UI Kit meeting control bar: the container component, ready-made audio/video and feature toggle buttons, and how to build custom controlbar actions. It is aimed at developers embedding a call UI in web (Angular, React, Core), React Native, iOS, or Android who need to know which component to use and which props are mandatory.
rtk-controlbar: meeting toolbar layout and variants
Section titled “rtk-controlbar: meeting toolbar layout and variants”The rtk-controlbar / RtkControlbar component is the main toolbar that holds mic, camera, leave, and related controls.
Controlbar component provides you with various designs as variants.
— Cloudflare, rtk-controlbar (Core)
The same description appears for Angular (rtk-controlbar) and React (RtkControlbar). variant (ControlBarVariant) picks the visual design; pair it with size on child controls so the bar stays consistent.
On React Native, RtkControlbar is described as the container that wires default meeting controls through a declarative UI config:
The main control bar container that renders meeting controls (mic, camera, leave, and more) using the declarative UI config system.
— Cloudflare, RtkControlbar (React Native)
On iOS, RtkControlBar exposes read-only slots such as moreButton (RtkMoreButtonControlBar) and endCallButton (RtkEndMeetingControlBarButton). RtkMeetingControlBar accepts an optional dataSource (RtkMeetingControlBarDataSource) to customise which buttons appear. Android provides RtkControlBarView as a styled base container for bar buttons.
Built-in controlbar buttons: mic, camera, leave, and more
Section titled “Built-in controlbar buttons: mic, camera, leave, and more”Cloudflare ships both high-level controlbar button classes (common in native custom-bar guides) and per-feature toggle components in the UI Kit API (one page per framework).
High-level controlbar button components
Section titled “High-level controlbar button components”From Add Custom Controlbar:
| Component | Role |
|---|---|
RtkAudioButtonControlBar |
Microphone toggle with automatic state management |
RtkVideoButtonControlBar |
Camera toggle with automatic state management |
RtkEndMeetingControlBarButton |
Leave/end meeting with confirmation dialog |
RtkMoreButtonControlBar |
“More” menu with bottom sheet |
RtkSwitchCameraButtonControlBar |
Front/back camera switch |
RtkStageActionButtonControlBar |
Stage join/leave for webinar and livestream |
RtkControlBarButton |
Base button class for custom buttons |
RtkControlBarSpacerButton |
Invisible spacer for layout |
Use these when you compose a bar from documented building blocks rather than hand-wiring each SDK call.
Feature toggles (web UI Kit)
Section titled “Feature toggles (web UI Kit)”Framework packages mirror the same behaviour under different names (for example rtk-mic-toggle in Angular and RtkMicToggle in React). Typical groups:
| User action | Angular / Core examples | Notes |
|---|---|---|
| Mute/unmute self | rtk-mic-toggle | Requires meeting |
| Camera on/off | rtk-camera-toggle | Requires meeting |
| Screen share | rtk-screen-share-toggle | Requires meeting, states |
| Chat / participants panels | rtk-chat-toggle, rtk-participants-toggle | Requires meeting, states |
| Breakout rooms | rtk-breakout-rooms-toggle | iconPack and t required in Core/API tables |
| Recording | rtk-recording-toggle | Extra disabled prop |
| Fullscreen | rtk-fullscreen-toggle | Uses targetElement, not meeting |
| Leave call | rtk-leave-button | No meeting in the property list |
| Stage / livestream / AI / plugins | rtk-stage-toggle, rtk-livestream-toggle, rtk-ai-toggle, rtk-plugins-toggle | Webinar and extension features |
Panel-style toggles (chat, settings, polls, PiP, captions, debugger, and similar) usually require a states object so the control bar can reflect open/closed UI. rtk-caption-toggle and rtk-pip-toggle also accept optional config (createDefaultConfig() default); see rtk-caption-toggle and rtk-pip-toggle.
Shared props: meeting, variant, size, and states
Section titled “Shared props: meeting, variant, size, and states”Most meeting toggles share a small prop contract on Core and Angular (React uses the same fields with PascalCase components):
| Property | Required | Default (if any) | Purpose |
|---|---|---|---|
meeting |
Yes | — | Active Meeting instance |
size |
Yes | — | Control sizing |
variant |
Yes | — | ControlBarVariant styling |
states |
Yes on panel toggles | — | UI state for sheets/panels |
iconPack |
No | defaultIconPack |
Custom icons |
t |
No | useLanguage() |
RtkI18n strings |
If a toggle “does nothing”, the API reference for that component is the source of truth: rtk-fullscreen-toggle needs an HTMLElement as targetElement (Core reference), and rtk-leave-button is driven by size/variant/i18n only (Core reference).
rtk-controlbar-button: custom actions and loading state
Section titled “rtk-controlbar-button: custom actions and loading state”When no premade toggle fits, use rtk-controlbar-button / RtkControlbarButton as the skeleton for custom bar items:
A skeleton component used for composing custom controlbar buttons.
— Cloudflare, rtk-controlbar-button (Core)
Important props on web (Angular, React):
| Property | Purpose |
|---|---|
icon, label |
Visible control |
brandIcon |
Whether the icon uses brand colour |
disabled |
Disable interaction |
isLoading |
Spinner instead of icon when true |
showWarning |
Warning indicator |
size, variant |
Layout and style |
On loading behaviour:
Loading state Ignores current icon and shows a spinner if true
— Cloudflare, rtk-controlbar-button (Core)
React Native’s RtkControlbarButton adds onClick, SVG icon, and layout variant ('button' | 'horizontal'). Android’s RtkControlBarButton uses XML attributes such as rtk_cbb_icon and rtk_cbb_showText. iOS RtkControlBarButton is documented as the base class for bar items with normal/selected states and badges.
Pair custom bar buttons with rtk-icon / rtk-tooltip when you need standalone icons or tooltips (delay, placement, label, etc.).
rtk-button vs controlbar buttons: when to use which
Section titled “rtk-button vs controlbar buttons: when to use which”rtk-button is a general design-system button (kind, variant, type, disabled, reverse) for forms and dialogs—not the control bar skeleton. RtkButton on Android and React Native are separate platform components with their own variant enums. For in-call chrome, prefer rtk-controlbar-button or the named toggles above so sizing and ControlBarVariant stay aligned with rtk-controlbar.
Common mistakes
Section titled “Common mistakes”- Omitting
meetingon toggles that require it (mic, camera, screen share, chat, etc.) while expecting SDK state updates. - Using
rtk-buttoninside the bar wherevariantshould beControlBarVariant/ controlbar-specific layout. - Setting
isLoadingon a custom bar button and wondering why the icon vanished—the spinner replaces the icon by design. - Forgetting
stateson panel toggles, so open/close affordances do not track UI. - On breakout UI, skipping required
iconPack/tper the breakout toggle API tables. - Passing the wrong element to
targetElementon fullscreen toggle instead of the DOM node that should enter fullscreen.
How to check this on your site
Section titled “How to check this on your site”- Open the API page for your stack’s
rtk-controlbar/RtkControlbar(Core, React Native) and confirm the chosenvariantmatches your design. - In a running meeting, verify mic and camera toggles receive the live
meetingobject (rtk-mic-toggle,rtk-camera-toggle) and reflect mute/video state when you interact. - For chat, participants, or screen share, confirm
statesis wired and updates when panels open (rtk-chat-toggle,rtk-participants-toggle). - For a custom action, test
rtk-controlbar-buttonwithdisabled,isLoading, andshowWarningin isolation, then embed it in the bar per Add Custom Controlbar. - 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 official RealtimeKit UI Kit docs, email yimasynthetic@gmail.com with the page URL and the exact wording you believe is wrong so it can be corrected or clarified.