Skip to content

RtkParticipantSetup

Properties

PropertyTypeRequiredDefaultDescription
configUIConfig❌createDefaultConfig()Config object
iconPackIconPack❌defaultIconPackIcon pack
isPreviewboolean✅-Whether tile is used for preview
nameTagPosition| 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-left' | 'top-right' | 'top-center'✅-Position of name tag
participantPeer✅-Participant object
sizeSize✅-Size
statesStates✅-States object
tRtkI18n❌useLanguage()Language
variant'solid' | 'gradient'✅-Variant

Usage Examples

Basic Usage

import { RtkParticipantSetup } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkParticipantSetup />;
}

With Properties

import { RtkParticipantSetup } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return (
<RtkParticipantSetup
isPreview={true}
nameTagPosition={| 'bottom-left'
| 'bottom-right'
| 'bottom-center'
| 'top-left'
| 'top-right'
| 'top-center'}
participant={participant}
/>
);
}