Skip to main content

subtitle: a line under the title

AFC, 2024Regular season, East and West divisions
TeamWinsLosses
152
116
107
413
134
89
512
413
import { STANDINGS, type Standing } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";

const spec = defineTable<Standing>()
.columns((c) => [c.logo("team", { league: "nfl" }), c.int("wins"), c.int("losses")])
.title("AFC, 2024")
.subtitle("Regular season, East and West divisions")
.build();
await renderHTMLAsync(spec, STANDINGS);

Tags: decoration · subtitle. All sdvtables examples.