Props for integrating the React component in your app.
holesreadonly GolfHole[] | null- Holes in selector order. Null means unavailable. Up to three holes use tabs, and a longer list uses the in-card selector.
initialHoleIdstring- Starting hole ID. The first hole is the default.
fillboolean (optional)- Fill a parent with a defined height and reserve its bottom safe area. Used in Studio Home View.
onHoleChange(holeId: string) => void- Reports an explicit selection of a different valid hole. The route restarts when the selected hole geometry changes.
initialUnit"yd" | "m"- Starting distance unit. Defaults to yards.
GolfHole.aerialImagestring- Image URL. The image fills a centered 100 × 128 map.
GolfHole.aerialFilterstring- Optional CSS filter for color-matching course imagery. The route and markers keep their own colors.
GolfHole.par / fairway3 | 4 | 5 / string- Par and optional SVG path for the fairway boundary in map coordinates.
GolfHole.liesreadonly [GolfLie, GolfLie, ...GolfLie[]]- Ordered map points with x and y coordinates and yards remaining. Start at the tee and end at the cup. Each next point is the exact landing position. The optional labelSide sets a preferred side for the distance label, which can move to keep the flight visible.