const SoccerLineUp : React . FC < PitchViewProps > ;
The component accepts props defined in PitchViewProps:
Prop Type Required Default value Description colorstringNo #588f58The pitch background color sizePitchSizeNo "normal"Pitch dimensions patternPitchPatternNo - The pattern applied to the pitch grass orientationPitchOrientationNo "horizontal"The pitch orientation homeTeamTeamNo - The home team awayTeamTeamNo - The away team
Value Width Height "small"600px 350px "normal"900px 525px "big"1200px 700px "responsive"100% Auto (12:7 ratio) "fill"100% 100%
Value description "lines"Horizontal line pattern "squares"Grid / checkerboard pattern "circles"Circular dot pattern
Value Description "horizontal"Landscape layout. Home team on the left, away team on the right "vertical"Portrait layout. Home team at the bottom, away team at the top
Attribute Type Required Default value Description squadSquadYes - The team players by role styleStyleNo - The team style
Attribute Type Required Default value Description gkPlayerNo - The squad goalkeeper dfPlayer[]No - The squad defenders cdmPlayer[]No - The squad central defensive midfielders cmPlayer[]No - The squad central midfielders camPlayer[]No - The squad central attack midfielders fwPlayer[]No - The squad forwards
Attribute Type Required Default value Description colorstringNo #ffffff (home) / #333333 (away)The team color borderColorstringNo #ffffff (home) / #333333 (away)The team border color numberColorstringNo #333333 (home) / #ffffff (away)The team number color numberBackgroundColorstringNo - The team number background color patternstringNo "none"The team jersey pattern patternColorstringNo - The team jersey pattern color nameColorstringNo #333333 (home) / #ffffff (away)The team players’ name color nameBackgroundColorstringNo - The team players’ name background color sizestring | numberNo "auto"The player marker diameter: "small" (24px), "medium" (32px), "big" (44px), "auto" (scales with the pitch) or a custom number of pixels numberSizenumberNo - The player number font size in pixels. Overrides the size derived from size nameSizenumberNo - The player name font size in pixels. Overrides the size derived from size nameOverflowstringNo - Caps the player name to its column width so it never overlaps. "ellipsis" truncates with …, "hidden" clips without it. Unset leaves names at full width
Attribute Type Required Default value Description namestringNo - The displayed player name numbernumberNo - The displayed player number styleStyleNo The team style The player style offsetPlayerOffsetNo - The player position offset onCLickFunctionNo - Callback to invoke when clicking on the player
Attribute Type Required Default value Description xnumberNo 0 The horizontal offset ynumberNo 0 The vertical offset