Skip to content

RtkPluginMain

Last updated View as MarkdownAgent setup

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

Property Type Required Default Description
iconPack IconPack defaultIconPack Icon pack
meeting Meeting - Meeting
plugin RTKPlugin - Plugin
t RtkI18n useLanguage() 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}
    />
  );
}

Was this helpful?