PitchKit
API Reference@pitchkit/reactFunctions

PlayerAvatar()

function PlayerAvatar(__namedParameters): ReactPortal | null;

Defined in: packages/react/src/PlayerAvatar.tsx:142

A player's photo, number and name at a point on the pitch, with badges for cards, substitution, goals and assists: the lineup graphic of a match centre.

It is HTML, not SVG, so the photo can be any image component. It renders into an overlay <Pitch> stacks over its <svg>, which means it paints after hydration and not on the server, like the Canvas layers (D30).

Parameters

ParameterType
__namedParametersPlayerAvatarProps

Returns

ReactPortal | null

On this page