Skip to content

RtkSidebar

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

Properties

PropertyTypeRequiredDefaultDescription
configUIConfig❌createDefaultConfig()Config
defaultSectionRtkSidebarSection✅-Default section
enabledSectionsRtkSidebarTab[]✅-Enabled sections in sidebar
iconPackIconPack❌defaultIconPackIcon pack
meetingMeeting✅-Meeting object
sizeSize✅-Size
statesStates✅-States object
tRtkI18n❌useLanguage()Language
viewRtkSidebarView✅-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}
/>
);
}