ParticipantVideoGrid
Props, styling and a live ParticipantVideoGrid example.
Customize
Label for a tile. Defaults to the participant's number or ID, then the participant reference of another app connection, then "Participant".
React only: @polymorfa/elements has no element for ParticipantVideoGrid.
npm install @polymorfa/react@dev @polymorfa/browser@devimport { PolymorfaProvider, ParticipantVideoGrid } from "@polymorfa/react";
const appearance = { theme: "light", variables: { colorPrimary: "#635bff" } };
export function ParticipantVideoGridExample({ calls }) {
return (
<PolymorfaProvider tokenEndpoint="/api/polymorfa/token" appearance={appearance}>
<ParticipantVideoGrid
controller={calls}
/>
</PolymorfaProvider>
);
}ParticipantVideoGrid from @polymorfa/react. Choose props and styles above; the preview stays visible in every code view.
Props#
classNamestringlabelVideo(video: RemoteVideoInfo) => string | undefinedLabel for a tile. Defaults to the participant's number or ID, then the participant reference of another app connection, then "Participant".
controllerCallsControllercreateController() => CallsController
Styling#
Use className, classNames (a class for any slot, typed SlotClassNames), appearance variables and element styles. The Style panel applies changes to the live component. See Appearance.
Setup#
Use the provider and server route for your application. The preview above uses local sample data and controllers. Chat controllers and inbox data sources keep your data separate from the UI.