Skip to content

RtkSidebar

Last updated View as MarkdownAgent setup

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

Properties

Property Type Required Default Description
config UIConfig ❌ createDefaultConfig() Config
defaultSection RtkSidebarSection ✅ - Default section
enabledSections RtkSidebarTab[] ✅ - Enabled sections in sidebar
iconPack IconPack ❌ defaultIconPack Icon pack
meeting Meeting ✅ - Meeting object
size Size ✅ - Size
states States ✅ - States object
t RtkI18n ❌ useLanguage() Language
view RtkSidebarView ✅ - View type

Usage Examples

Basic Usage

import { RtkSidebar } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return <RtkSidebar />;
}

With Properties

import { RtkSidebar } from '@cloudflare/realtimekit-react-ui';

function MyComponent() {
  return (
    <RtkSidebar
      defaultSection={rtksidebarsection}
      enabledSections={[]}
      meeting={meeting}
    />
  );
}

Was this helpful?