Skip to main content

headshot: player headshots from ESPN ids

AFC starting quarterbacks, 2024
QuarterbackTeam
3139477Patrick MahomesKC
4038941Justin HerbertLAC
4426338Bo NixDEN
4038524Gardner MinshewLV
3918298Josh AllenBUF
4241479Tua TagovailoaMIA
8439Aaron RodgersNYJ
4431452Drake MayeNE
import { STANDINGS, type Standing } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";

// ESPN headshot URLs are built from the id alone: no shard to load.
const spec = defineTable<Standing>()
.columns((c) => [
c.headshot("qb_espn_id", { league: "nfl", label: "" }),
c.text("qb", { label: "Quarterback" }),
c.text("team"),
])
.title("AFC starting quarterbacks, 2024")
.build();
await renderHTMLAsync(spec, STANDINGS);

Tags: kind · headshot · gt_sdv_headshots · reactable_sdv_headshots · nfl. All sdvtables examples.