PitchKit
API Reference@pitchkit/reactFunctions

GoalView()

function GoalView(__namedParameters): Element;

Defined in: packages/react/src/GoalView.tsx:125

The goal mouth seen from in front, the way a shooter sees it: posts, crossbar and net drawn to scale, with the ground receding to the six-yard line, the penalty spot and the penalty area so the distance reads at a glance.

A root, a sibling of <Pitch> rather than a layer inside one (D29). It owns its own coordinate system, chosen by type, and is responsive by default. Shots are children: <GoalShots>, or your own marks placed with useGoalView().

Parameters

ParameterType
__namedParametersGoalViewProps

Returns

Element

On this page