| プロパティ | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
config |
UIConfig |
❌ | createDefaultConfig() |
設定オブジェクト |
iconPack |
IconPack |
❌ | defaultIconPack |
アイコンパック |
isPreview |
boolean |
✅ | - | タイルをプレビューに使うかどうか |
nameTagPosition |
| 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-left' | 'top-right' | 'top-center' |
✅ | - | ネームタグの位置 |
participant |
Peer |
✅ | - | 参加者オブジェクト |
size |
Size |
✅ | - | サイズ |
states |
States |
✅ | - | States オブジェクト |
t |
RtkI18n |
❌ | useLanguage() |
言語 |
variant |
'solid' | 'gradient' |
✅ | - | バリアント |
import { RtkParticipantSetup } from '@cloudflare/realtimekit-react-ui';
function MyComponent() {
return <RtkParticipantSetup />;
}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}
/>
);
}