Configuration options for the MiniCard component
Optional
deprecatedLegacyContext: anyRendered mini card with avatar/initials and optional status icons
Optional
propUsed to declare the types of the props accepted by the component. These types will be checked during rendering and in development only.
We recommend using TypeScript instead of checking prop types at runtime.
Optional
contextOptional
defaultUsed to define default values for the props accepted by the component.
Optional
displayUsed in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
MiniCard - Compact participant card displaying avatar or initials with status icons
MiniCard is a lightweight React Native component designed for displaying participants in compact grid layouts, sidebars, or minimized views. It intelligently renders either a participant's avatar image or their initials, with optional status icons for audio/video.
Key Features:
UI Customization - Two-Tier Override System:
Custom Render Function (via
customMiniCard
prop): Pass a function that receives all MiniCardOptions and returns custom JSX. Provides complete control over rendering logic and appearance.Component Override (via
uiOverrides.miniCardComponent
): Replace the entire MiniCard component while preserving MediaSFU's orchestration. Useful when you want a different component implementation.Advanced Render Overrides:
renderContent
: Wrap/modify the card's inner content while keeping containerrenderContainer
: Wrap/modify the entire card containerComponent
Example
Example
Example
Example