Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

Realtime UI Kit Components: Angular Usage, Properties, and Meeting Layout

How Cloudflare RealtimeKit UI Kit web components work in Angular templates, core markup, properties, chat, and dismissible overlays.

This page summarizes Cloudflare RealtimeKit Humans UI Kit API reference material for the rtk-* custom elements used to build meeting, livestream, and chat interfaces. The cluster is almost entirely Angular Basic Usage snippets plus a smaller core binding style and a few components with explicit lifecycle notes.

RealtimeKit UI Kit: what the rtk-* components are for

Section titled “RealtimeKit UI Kit: what the rtk-* components are for”

RealtimeKit UI Kit components are custom elements (web components) you place in HTML or Angular templates to render prefabricated realtime UI: main stage and grids, control bar toggles, in-meeting chat, transcripts, settings, and auxiliary primitives such as buttons and menus. Each component has a dedicated API page under the Humans UI Kit reference—for example rtk-stage for the primary meeting surface and rtk-chat for chat chrome.

Angular integrations use the same tag names with optional property bindings; core pages document the same tags for framework-agnostic markup, often showing attributes in HTML and further fields set on the DOM node in JavaScript.

Angular templates: how to add a UI Kit component (component.html)

Section titled “Angular templates: how to add a UI Kit component (component.html)”

In Angular, Cloudflare documents a single repeated pattern: import or register the UI Kit for your app (see your RealtimeKit setup guide), then drop the tag into the template.

component.html
<rtk-mic-toggle></rtk-mic-toggle>

— Cloudflare, rtk-mic-toggle

The same Basic Usage block appears across meeting controls (rtk-camera-toggle, rtk-screen-share-toggle), layout (rtk-grid, rtk-header), and chat (rtk-chat-composer-ui). You compose a full experience by nesting and arranging multiple tags—for instance rtk-controlbar with rtk-controlbar-button children, or rtk-sidebar-ui beside rtk-stage.

rtk-ui-provider: root wrapper for kit context

Section titled “rtk-ui-provider: root wrapper for kit context”

rtk-ui-provider follows the same empty-tag Basic Usage pattern. In practice, providers like this typically wrap the subtree that should share UI Kit configuration; confirm wiring in your RealtimeKit app bootstrap docs if controls render but do not react to session state.

Core markup vs Angular: two ways to set properties

Section titled “Core markup vs Angular: two ways to set properties”

Many components exist in both angular and core API paths. Angular With Properties sections use template binding syntax, for example rtk-chat-message:

component.html
<rtk-chat-message
[alignRight]="true"
[canDelete]="true"
[canEdit]="true">
</rtk-chat-message>

Core pages show static attributes on the element and additional fields assigned in script, as in rtk-button (core):

<rtk-button size="md">
</rtk-button>
<script>
const el = document.querySelector("rtk-button");
el.disabled = true;
el.reverse = true;
</script>
Approach Document path Typical use
Angular template tags and [property] bindings .../api-reference/angular/rtk-* Angular apps using RealtimeKit Humans UI Kit
Attributes + document.querySelector property writes .../api-reference/core/rtk-* Vanilla JS, or understanding default DOM API
React-named docs .../api-reference/react/RtkNotification etc. Same behavior descriptions as core/Angular for a few widgets

The common conclusion: one component, multiple reference flavors. Pick the page that matches your framework; property names illustrated on core pages (e.g. iconPack, isLoading on rtk-controlbar-button (core)) are the same conceptual API you mirror with Angular bindings where supported.

Meeting layout: stage, grid, control bar, and device controls

Section titled “Meeting layout: stage, grid, control bar, and device controls”

rtk-controlbar groups session actions. Individual toggles documented in the cluster include rtk-mic-toggle, rtk-camera-toggle, rtk-screen-share-toggle, rtk-recording-toggle, rtk-fullscreen-toggle, rtk-pip-toggle, and rtk-settings-toggle. Device pickers include rtk-camera-selector, rtk-microphone-selector, and rtk-speaker-selector.

Lifecycle screens use the same Basic Usage pattern: rtk-setup-screen, rtk-waiting-screen, rtk-idle-screen, and rtk-ended-screen.

In-meeting chat: composer, messages, and selectors

Section titled “In-meeting chat: composer, messages, and selectors”

Chat is split into composable pieces rather than one monolithic widget:

Role Component API page
Chat shell rtk-chat rtk-chat
Message list UI rtk-chat-messages-ui rtk-chat-messages-ui
Paginated history rtk-chat-messages-ui-paginated rtk-chat-messages-ui-paginated
Single message rtk-chat-message rtk-chat-message
Composer rtk-chat-composer-ui, rtk-chat-composer-view, rtk-text-composer-view composer UI, composer view, text composer
Channel / group picker rtk-chat-selector-ui rtk-chat-selector-ui

With Properties examples show how you wire behavior—for example rtk-chat-messages-ui with [canPinMessages], [messages], and selectedGroup, or rtk-chat-selector-ui (core) with selectedGroupId, selfUserId, and unreadCounts. Rich message types use dedicated views: rtk-text-message, rtk-image-message, rtk-file-message, with shared list virtualization via rtk-message-list-view (estimateItemSize, loadMore, [messages]).

Attachments and emoji: rtk-file-picker-button, rtk-file-dropzone, rtk-emoji-picker. Toggle chat panel visibility with rtk-chat-toggle.

For transcripts, Cloudflare gives explicit behavioral text (Angular, core, and React pages agree):

A component which handles transcripts. You can configure which transcripts you want to see and which ones you want to hear. There are also certain limits which you can set as well.

— Cloudflare, rtk-transcripts

Single transcript toasts are separate from the manager component:

A component which shows a transcript. You need to remove the element after you receive the rtkTranscriptDismiss event.

— Cloudflare, rtk-transcript

Use rtk-transcripts for ongoing configuration and rtk-transcript when you show a dismissible transcript line; bind transcript and [t] on the Angular With Properties example when needed.

A component which shows a notification. You need to remove the element after you receive the rtkNotificationDismiss event.

— Cloudflare, rtk-notification (Angular)

The same requirement appears on rtk-notification (core) and RtkNotification (React). rtk-notifications is the plural container Basic Usage counterpart—check that page when wiring a notification stack vs a single rtk-notification instance.

Overlays and chrome: rtk-dialog, rtk-dialog-manager, rtk-overlay-modal, rtk-confirmation-modal, rtk-broadcast-message-modal. Menus: rtk-menu, rtk-menu-list, rtk-menu-item.

Session diagnostics: rtk-debugger and specialized panes (audio, video, screenshare, system) with rtk-debugger-toggle.

UI Kit plugin slots: rtk-plugins, rtk-plugin-main, rtk-plugins-toggle. The core Humans API describes how a plugin exposes its UI root:

The component for this plugin, as provided in the plugin config.

Kind: instance property of RTKPlugin

— Cloudflare, RTKPlugin

That property is the bridge between plugin configuration and the tag you render in the meeting UI.

Shared primitives: buttons, icons, lists, and status

Section titled “Shared primitives: buttons, icons, lists, and status”

Reuse across features: rtk-button / core, rtk-icon, rtk-avatar, rtk-switch, rtk-spinner, rtk-tooltip. Status and broadcast cues: rtk-recording-indicator, rtk-livestream-indicator, rtk-network-indicator, rtk-viewer-count. Long lists: rtk-paginated-list with emptyListLabel, createNodes, and [autoScroll] in the documented With Properties example.

Many primitives accept size="md", iconPack, or variant—compare Angular and core pages when a binding fails silently (common with custom elements if the property is not reflected as an attribute).

Common mistakes when using UI Kit components

Section titled “Common mistakes when using UI Kit components”
  1. Leaving dismissible overlays in the DOM after rtkNotificationDismiss or rtkTranscriptDismiss—the docs state you must remove the element; otherwise stale nodes can block input or duplicate UI.
  2. Mixing core and Angular binding styles on the same tag (e.g. setting el.disabled in script while also using [disabled] inconsistently) without checking which properties are reflected attributes.
  3. Omitting data hooks on chat and grid components ([messages], selectedGroup, loadMore, aspectRatio) while expecting default demo content—the Basic Usage tags are inert shells until your app supplies RealtimeKit session data.
  4. Using the wrong grid or screen for the session phase (e.g. rtk-waiting-screen vs rtk-stage) so users never see controls meant for an active call.
  5. Ignoring plugin component wiring—render rtk-plugin-main only when RTKPlugin’s plugin.component from RTKPlugin is configured.

Deep property list

Open the With Properties section on the specific component’s Cloudflare page (Angular or core).

  1. Open the API page for each rtk-* tag you use (for example rtk-stage) and confirm your template matches the documented Basic Usage or With Properties snippet.

  2. In the browser developer tools, verify each custom element appears in the DOM with the expected tag name and that bound properties match the core examples where Angular bindings are unclear (rtk-button (core)).

  3. Trigger a notification or transcript UI and confirm the element is removed after rtkNotificationDismiss or rtkTranscriptDismiss, per rtk-notification and rtk-transcript.

  4. Walk through chat and grid flows with live data: pinned messages (rtk-chat-messages-ui), group selection (rtk-chat-selector-ui), and grid layout props (rtk-grid).

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

If something on this page does not match the Cloudflare API reference or your integration behavior, email yimasynthetic@gmail.com with the page URL and the exact statement you think is wrong so it can be corrected or clarified.