Reference · Draw a bracket, a table or a road to the final
BroadcastIcontype
The icons of the title band's square, drawn by the package: a medal and a stopwatch. none leaves the band whole.
Import it
import type { BroadcastIcon } from "@johnmorrisdotca/taisen-brackets";
Definition
type BroadcastIcon = "medal" | "stopwatch" | "none";
Examples
import { resultsBoard, type BroadcastIcon } from "@johnmorrisdotca/taisen-brackets";
const icon: BroadcastIcon = "stopwatch";
console.log(resultsBoard({ title: "Final", rows: [{ name: "A" }] }, { icon }).startsWith("<svg"));trueWhat it prints (run when this page was built)