Skip to main content

logo: team logos from the bundled league data

AFC, 2024
TeamDivision
West
West
West
West
East
East
East
East
import { STANDINGS, type Standing } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";

// renderHTMLAsync loads the NFL shard first; the cell holds the archive URL, nothing is fetched to render it.
const spec = defineTable<Standing>()
.columns((c) => [c.logo("team", { league: "nfl", includeName: true }), c.text("division")])
.title("AFC, 2024")
.build();
await renderHTMLAsync(spec, STANDINGS);

Tags: kind · logo · gt_sdv_logos · reactable_sdv_logos · nfl. All sdvtables examples.