RtkPluginsToggle
A button which toggles visibility of plugins.
When clicked it emits a rtkStateUpdate event with the data:
{ activeSidebar: boolean; sidebar: 'plugins' }| Property | Type | Required | Default | Description |
|---|---|---|---|---|
iconPack | IconPack | ❌ | defaultIconPack | Icon pack |
meeting | Meeting | ✅ | - | Meeting object |
size | Size | ✅ | - | Size |
states | States | ✅ | - | States object |
t | RtkI18n | ❌ | useLanguage() | Language |
variant | ControlBarVariant | ✅ | - | Variant |
import { RtkPluginsToggle } from '@cloudflare/realtimekit-react-ui';
function MyComponent() { return <RtkPluginsToggle />;}import { RtkPluginsToggle } from '@cloudflare/realtimekit-react-ui';
function MyComponent() { return ( <RtkPluginsToggle meeting={meeting} size="md" variant="button" /> );}