Meeting UI Web Components: Properties, Screens, Grid Layout and Controls
How Cloudflare RealtimeKit core rtk-* web components bind the meeting object, HTML attributes, and JavaScript properties for video UI.
This page summarises Cloudflare RealtimeKit Humans UI Kit documentation for core rtk-* web components: the shared With Properties pattern used across the API reference. You place custom elements in HTML, set presentation attributes on the tag, then assign live objects on the element in JavaScript. Almost every control expects a meeting instance; participant views, grids, and global chrome add participant, config, or provider-level settings.
rtk-* web components: how properties and attributes work together
Section titled “rtk-* web components: how properties and attributes work together”RealtimeKit UI pieces are custom elements (tags such as rtk-mic-toggle, rtk-grid, rtk-chat). Documentation consistently shows two layers:
- HTML attributes on the tag — commonly
size="md", and for buttonsvariant="button", or layout values such asgridSize="md"andaspectRatioon grids (rtk-mic-toggle,rtk-grid). - JavaScript properties on the DOM node — after
querySelector, assign objects the component cannot express as static attributes, especiallyel.meeting = meeting.
The canonical wiring pattern from the core reference is:
<rtk-mic-toggle size="md" variant="button"></rtk-mic-toggle>
<script> const el = document.querySelector("rtk-mic-toggle");
el.meeting = meeting;</script>The same structure appears on rtk-ai, rtk-controlbar, rtk-participants, and dozens of other core entries. Attributes shape look and control variant; properties connect runtime meeting state.
meeting property: what to assign before the UI works
Section titled “meeting property: what to assign before the UI works”For most core components, el.meeting = meeting is required once the RealtimeKit client has created a meeting handle. Examples include rtk-meeting, rtk-setup-screen, rtk-chat, rtk-settings, and modal flows such as rtk-broadcast-message-modal.
If controls stay inert or screens never leave a loading state, the usual cause is assigning meeting too late or not at all, or rendering meeting UI before the meeting object exists. The idle screen exists specifically for that gap (see below).
rtk-meeting and rtk-ui-provider: shell versus global config
Section titled “rtk-meeting and rtk-ui-provider: shell versus global config”rtk-meeting is the composite meeting shell. Beyond meeting, the reference assigns:
el.applyDesignSystem = trueel.config = defaultUiConfig
rtk-ui-provider sits above individual widgets:
el.config = defaultUiConfigel.mode = meetingel.showSetupScreen = true
Use rtk-ui-provider when you need global UI config and flow flags (setup screen visibility, mode). Use rtk-meeting when you want the prebuilt meeting layout with design system and config applied on the root meeting element.
participant, config, and scope-specific properties
Section titled “participant, config, and scope-specific properties”Not every component only needs meeting. The cluster shows recurring second objects and feature flags:
| Scope | Typical properties (from examples) | Representative components |
|---|---|---|
| Per-participant tile | participant, config, isPreview, isScreenShare |
rtk-participant-tile, rtk-audio-tile, rtk-name-tag |
| Grid layout | participants (array), gap, aspectRatio, gridSize, hideSelf |
rtk-simple-grid, rtk-mixed-grid, rtk-audio-grid |
| Chat search / channels | channelId, query |
rtk-chat-search-results |
| AI transcriptions | initialTranscriptions |
rtk-ai-transcriptions |
| Breakout selection | participantIds, selectedParticipantIds |
rtk-breakout-room-participants |
| Lists (no meeting in snippet) | items, itemHeight, bufferedItemsCount |
rtk-virtualized-participant-list |
defaultUiConfig appears wherever layout and chrome are customised (rtk-meeting, rtk-audio-grid). participant without meeting appears on preview-style pieces such as rtk-participant-setup (el.isPreview = true).
Audio visualizer and screenshare context
Section titled “Audio visualizer and screenshare context”rtk-audio-visualizer binds participant and optional behaviour flags:
el.hideMuted = trueel.isScreenShare = true
The same isScreenShare flag appears on rtk-network-indicator and rtk-name-tag. Set these when the UI lane is screen share, not the main camera tile.
size and variant attributes on toggles and chrome
Section titled “size and variant attributes on toggles and chrome”Many controls share size="md". Media and session toggle components also take variant="button" in HTML, including rtk-camera-toggle, rtk-ai-toggle, rtk-recording-toggle, rtk-chat-toggle, and rtk-debugger-toggle. rtk-recording-toggle additionally sets el.disabled = true when recording must not be startable.
Device selectors (rtk-camera-selector, rtk-microphone-selector, rtk-speaker-selector) follow the size + meeting pattern without variant.
Meeting screens: idle, waiting, setup, and ended
Section titled “Meeting screens: idle, waiting, setup, and ended”Lifecycle screens are ordinary rtk-* elements that still take el.meeting = meeting in the core reference, but they answer different user-facing states.
rtk-idle-screen: waiting for the meeting object
Section titled “rtk-idle-screen: waiting for the meeting object”A screen that handles the idle state, i.e; when you are waiting for data about the meeting, specifically the meeting object.
— Cloudflare,
rtk-idle-screen(core)
Show rtk-idle-screen while the app fetches or constructs meeting. This is not the same as queue or reconnect UX.
rtk-waiting-screen: waitlist and disconnect states
Section titled “rtk-waiting-screen: waitlist and disconnect states”Screen displayed while waiting to join (waitlist, kicked, disconnected states).
— Cloudflare,
RtkWaitingScreen(React Native)
rtk-waiting-screen covers join workflow blocking (waitlist, kicked, disconnected). Pair it with rtk-setup-screen for pre-join device checks and rtk-ended-screen after the session ends.
Layout grids, control bar, and sidebar composition
Section titled “Layout grids, control bar, and sidebar composition”Video layouts reuse the same property pattern with extra layout fields:
rtk-grid—meeting, optionalel.gaprtk-spotlight-grid—meeting,participants,gaprtk-grid-pagination— paginated large stages
Chrome pieces:
rtk-controlbar—el.disableRender = trueto suppress default rendering while keeping logicrtk-header— samedisableRenderpatternrtk-sidebar—el.enabledSections = []to choose visible sectionsrtk-tab-bar—el.tabs = []
For a minimal custom layout, compose grid + toggles + sidebar and bind one shared meeting. For fastest integration, start from rtk-meeting and replace subtrees selectively.
Chat, AI, livestream, and debugger components
Section titled “Chat, AI, livestream, and debugger components”| Area | Components (all use meeting unless noted) |
Extra properties from examples |
|---|---|---|
| Chat | rtk-chat, rtk-chat-messages-ui-paginated, rtk-chat-selector |
Search UI: channelId, query on rtk-chat-search-results |
| AI | rtk-ai, rtk-ai-transcriptions |
initialTranscriptions |
| Livestream | rtk-livestream-player, rtk-livestream-indicator |
Toggles: variant="button" on rtk-livestream-toggle |
| Debugger | rtk-debugger, rtk-debugger-audio, rtk-debugger-video, rtk-debugger-screenshare, rtk-debugger-system |
Open via rtk-debugger-toggle |
rtk-caption-toggle and transcript views (rtk-transcripts, rtk-transcript with el.transcript = {}) sit alongside AI for accessibility and minutes.
Dialogs, modals, and optional render flags
Section titled “Dialogs, modals, and optional render flags”Modal family members (rtk-dialog, rtk-dialog-manager, rtk-overlay-modal, rtk-confirmation-modal) set meeting like other core widgets. rtk-dialog shows optional behaviour:
el.disableEscapeKey = trueel.hideCloseButton = true
rtk-screenshare-view uses meeting, participant, and el.hideFullScreenButton = true.
Common mistakes when wiring rtk-* properties
Section titled “Common mistakes when wiring rtk-* properties”- Using idle screen for waitlist UX — idle is for missing
meetingdata; waiting/join states usertk-waiting-screen. - Omitting
participanton tiles —rtk-participant-tileandrtk-screenshare-viewexpect bothmeetingandparticipant. - Empty grids —
rtk-mixed-gridsetsel.participants = []; you must populate the array from live roster data. - Wrong querySelector target — each example uses a selector matching one tag name; copying snippets without updating the selector leaves properties on the wrong element.
- Forgetting config on audio/video chrome — audio layouts reference
defaultUiConfigonrtk-audio-gridand tiles; skippingconfigcan yield default layout you did not intend.
How to check this on your site
Section titled “How to check this on your site”- Open the API page for each
rtk-*tag you use (for examplertk-meeting) and confirm your HTML attributes and JavaScript property names match the With Properties example. - In the browser devtools, select the custom element and verify
meeting(andparticipantorconfigwhere required) are defined objects, notundefined, after your RealtimeKit client initialises. - Step through lifecycle: confirm
rtk-idle-screenonly shows untilmeetingexists, thenrtk-setup-screenor in-call UI as appropriate; usertk-waiting-screenfor waitlist or disconnect flows. - Toggle mic, camera, and screen share via the documented toggles (
rtk-mic-toggle,rtk-camera-toggle,rtk-screen-share-toggle) and confirm the meeting state changes in parallel with UI updates. - 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 reference, email yimasynthetic@gmail.com with the page URL and the exact sentence or property you think is wrong, and we will correct it.