A component which handles the sidebar and you can customize which sections you want, and which section you want as the default.
| 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 |
import { RtkSidebar } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkSidebar />;
}import { RtkSidebar } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkSidebar
defaultSection={rtksidebarsection}
enabledSections={[]}
meeting={meeting}
/>
);
}