Skip to content
AnswerWell geo Documentation

Research · 8 min read · Answerwell

Video Meeting UI Kit: Components, Meeting Object, Grids and View Modes

How RealtimeKit Humans UI Kit components connect to the Meeting object, presets, participant grids, sidebars, and lifecycle screens.

This page summarizes Cloudflare RealtimeKit documentation for the Humans UI Kit: prebuilt meeting UI components (rtk-* on web, Rtk* on React Native) that bind to a live Meeting instance from your RealtimeKit client. Most entries in the API reference repeat the same integration pattern; the important choices are whether you mount the all-in-one shell, how participant video is laid out, and how sidebar panels are composed.

rtk-meeting and RtkMeeting: one component for the full meeting UI

Section titled “rtk-meeting and RtkMeeting: one component for the full meeting UI”

For the fastest path, use the top-level meeting component instead of wiring every screen, dialog, and state yourself.

A single component which renders an entire meeting UI. It loads your preset and renders the UI based on it. With this component, you don’t have to handle all the states, dialogs and other smaller bits of managing the application.

— Cloudflare, rtk-meeting (core)

On React Native, the same role is described with explicit lifecycle coverage:

The top-level meeting component that orchestrates the entire meeting UI. Manages meeting lifecycle (idle, setup, joined, ended, waiting states), applies design system, handles room join/leave events, and renders the appropriate screen. With this component, you do not have to handle all the states, dialogs, and other smaller bits of managing the application.

— Cloudflare, RtkMeeting (React Native)

rtk-meeting properties that control presets and lifecycle

Section titled “rtk-meeting properties that control presets and lifecycle”

When you use rtk-meeting (React) or the core variant, several required props shape behavior beyond passing meeting:

Property Role
config UIConfig for theming and layout defaults
loadConfigFromPreset Whether UI settings come from your RealtimeKit preset
applyDesignSystem Applies design tokens from config on the document root
showSetupScreen Shows or skips the pre-join setup UI
leaveOnUnmount Leaves the room when the component unmounts
gridLayout Default grid layout for in-meeting video
mode MeetingMode fill behavior for the shell

Optional overrides and iconPack let you patch specific UI pieces without forking the kit. If you need a custom layout but still want shared config and i18n, compose lower-level pieces under rtk-ui-provider instead of rtk-meeting.

Meeting object: what every UI Kit component expects

Section titled “Meeting object: what every UI Kit component expects”

The Humans UI Kit does not create the call for you. It renders against the meeting object that your app obtains from the RealtimeKit client after authentication and join logic.

The meeting object contains several properties that organize different aspects of the meeting:

— Cloudflare, Meeting object explained

Across the API reference, meeting is required on nearly every component (rtk-chat (core), rtk-controlbar (core), rtk-grid (core), and others). That object is the bridge between realtime media (participants, stages, plugins) and UI state.

Remote participants: ACTIVE_GRID vs PAGINATED view mode

Section titled “Remote participants: ACTIVE_GRID vs PAGINATED view mode”

Grids and participant lists do not always show the same set of peers. The view mode on the meeting side decides who appears in meeting.participants.active:

The view mode indicates whether participants are populated in ACTIVE_GRID mode or PAGINATED mode.

ACTIVE_GRID mode - Participants are automatically replaced in meeting.participants.active based on who is speaking or who has their video turned on

PAGINATED mode - Participants in meeting.participants.active are fixed. Use setPage() to change the active participants

— Cloudflare, Remote participants

ACTIVE_GRID suits speaker-focused layouts (tiles shuffle as activity changes). PAGINATED suits fixed pages of attendees; you must call setPage() when the user pages through the roster. If your grid “jumps” unexpectedly, check view mode before tuning gap or aspectRatio on grid components.

Shared props pattern across rtk-* components

Section titled “Shared props pattern across rtk-* components”

Most kit components accept a recurring set of inputs. Treat them as layers: data (meeting, sometimes explicit Peer[]), presentation (size, config, iconPack), UI state (states), and i18n (t / RtkI18n).

Property Typical requirement Purpose
meeting Required on in-call UI Source of truth for room state
config Optional; createDefaultConfig() default Colors, typography, feature flags in UIConfig
states Required on interactive pieces (control bar, dialogs, grids) Local UI state synchronized with the shell
size Required on most components Density breakpoint (Size on web; 'sm' | 'md' | 'lg' | 'xl' on React Native grids)
t Optional; useLanguage() Translations
iconPack Optional; defaultIconPack Replace icon URLs for branding

rtk-ui-provider (core) lifts config, optional meeting, mode, overrides, and showSetupScreen so children inherit context. On React Native, RtkUIProvider is documented as mandatory wrapping:

Context provider component that wraps the meeting UI. Provides SafeAreaView, state management, and back button handling. Must wrap all Rtk UI components.

— Cloudflare, RtkUIProvider (React Native)

Participant grid components: which layout to pick

Section titled “Participant grid components: which layout to pick”

Grid components differ by who supplies the participant list and how tiles are arranged.

rtk-grid and RtkGrid: layout tied to meeting active set

Section titled “rtk-grid and RtkGrid: layout tied to meeting active set”

rtk-grid (core) requires aspectRatio, gap, gridSize, layout (GridLayout), and meeting. The overrides prop is marked Deprecated—prefer config and shell-level overrides on rtk-meeting or rtk-ui-provider.

rtk-simple-grid and RtkSimpleGrid: explicit Peer[] list

Section titled “rtk-simple-grid and RtkSimpleGrid: explicit Peer[] list”

rtk-simple-grid (core) and RtkSimpleGrid (React Native) take a required participants array. React Native describes behavior as:

A simple grid layout that arranges participant tiles in rows and columns with automatic sizing based on participant count.

— Cloudflare, RtkSimpleGrid (React Native)

Use this when you already filtered peers (for example a static subset) instead of relying on meeting.participants.active.

rtk-spotlight-grid: pinned speakers vs everyone else

Section titled “rtk-spotlight-grid: pinned speakers vs everyone else”

A grid component that renders two lists of participants: pinnedParticipants and participants. You can customize the layout to a column view, by default is row.

Participants from pinnedParticipants[] are rendered inside a larger grid. Participants from participants[] array are rendered in a smaller grid.

— Cloudflare, rtk-spotlight-grid (core)

rtk-mixed-grid (core) extends the idea for webinars: separate arrays for participants, pinnedParticipants, screenShareParticipants, and active plugins—suited to stage + screen share + plugin tiles in one canvas.

The iOS GridView initializer uses showingCurrently, optional maxItems (default 9), and getChildView to factory-build cells. That API is native SwiftUI-style composition, not the same prop surface as rtk-grid on web.

Shell UI: header, control bar, dialogs, and lifecycle screens

Section titled “Shell UI: header, control bar, dialogs, and lifecycle screens”

These pieces map to meeting phases and controls:

Concern Component Notable required props
Top bar rtk-header (core) disableRender, variant ('solid' | 'boxed')
Bottom controls rtk-controlbar (core) disableRender, variant
Modals rtk-dialog (core) open, disableEscapeKey, hideCloseButton
Dialog stack rtk-dialog-manager (core) Coordinates multiple dialogs with meeting + states
Pre-join rtk-setup-screen (core) Device check UI before join
Lobby rtk-waiting-screen (core) Waiting room
Idle / ended rtk-idle-screen (core), rtk-ended-screen (core) Branding via config; ended uses states

rtk-join-stage (core) adds dataConfig (ModalDataConfig) for staged events when participants move between viewer and stage roles.

rtk-sidebar: enabled sections and default tab

Section titled “rtk-sidebar: enabled sections and default tab”

A component which handles the sidebar and you can customize which sections you want, and which section you want as the default.

— Cloudflare, rtk-sidebar (core)

Required props include defaultSection, enabledSections (RtkSidebarTab[]), and view (RtkSidebarView). React Native’s RtkSidebar documents concrete defaults: enabledSections defaults to ['chat', 'polls', 'participants', 'plugins'] and defaultSection to 'chat'.

A tabbed container for meeting panels, such as chat and participants. It shows the selected panel in a sidebar or full-screen view.

— Cloudflare, rtk-sidebar-ui (core)

Use rtk-sidebar-ui when you build a custom shell but want the same tabbed panel chrome (currentTab, tabs, view, header/close options).

Feature-level components plug into those tabs:

Stage and webinar lists split attendees by role: rtk-participants-stage-list (core), rtk-participants-viewer-list (core), rtk-participants-waiting-list (core), and rtk-participants-stage-queue (core). Most accept view (ParticipantsViewMode) to align with your roster UX.

For long rosters on web, rtk-virtualized-participant-list (core) virtualizes fixed-height rows via renderItem, itemHeight, and bufferedItemsCount.

  • Mounting chat or grid without a joined meeting — props are required; create and join through the client first, then render UI.
  • Mixing grid types — rtk-grid follows meeting-driven active participants; rtk-simple-grid needs an explicit Peer[]. Passing the wrong source yields empty tiles or stale video.
  • Ignoring ACTIVE_GRID vs PAGINATED — automatic tile changes are a meeting configuration issue, not a CSS tweak (Remote participants).
  • Skipping RtkUIProvider on React Native — all Rtk components expect that wrapper (RtkUIProvider).
  • Using deprecated overrides on rtk-grid — migrate customization to config / provider-level overrides.
  • leaveOnUnmount: true on rtk-meeting during route changes — users drop from the call when navigating away unless you handle unmount carefully.

All-in-one shell

Start with rtk-meeting (React) when you want presets, setup screen, and dialogs handled for you.

  1. Confirm your app passes a live Meeting (or React Native RealtimeKitClient) into the same component named in the core API reference for your framework (React, Angular, or React Native).

  2. Compare your participant tile behavior with Remote participants—verify whether you are in ACTIVE_GRID or PAGINATED mode and that paging calls setPage() when expected.

  3. If using the full shell, walk through idle → setup → joined → ended and match visible screens to rtk-setup-screen, rtk-waiting-screen, and rtk-ended-screen props (showSetupScreen, states).

  4. Open sidebar tabs you enabled in rtk-sidebar (core) and confirm each panel component (rtk-chat, rtk-participants, rtk-polls) receives meeting and required size / states props.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page does not match the official RealtimeKit docs, or you need a clarification on a specific component prop, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.