Skip to content

RtkPluginMain

A component which renders a plugin's UI.

The plugin's component (an HTMLElement) is placed into this element's light DOM and projected into the shadow DOM layout via a <slot>. This ensures external CSS from the consuming application continues to apply to the plugin content.

Properties

PropertyTypeRequiredDefaultDescription
iconPackIconPackdefaultIconPackIcon pack
meetingMeeting-Meeting
pluginRTKPlugin-Plugin
tRtkI18nuseLanguage()Language

Usage Examples

Basic Usage

import { RtkPluginMain } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkPluginMain />;
}

With Properties

import { RtkPluginMain } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkPluginMain
meeting={meeting}
plugin={rtkplugin}
/>
);
}