Skip to the content

Taisen Brackets対戦

Knockout brackets as SVG, from a list of ties.

Taisen (対戦, たいせん) is Japanese for a matchup: two sides facing each other. About the name

Contents

Reference · Draw a bracket, a table or a road to the final

BroadcastLooktype

The looks of a broadcast board: blue, night and paper.

Import it

import type { BroadcastLook } from "@johnmorrisdotca/taisen-brackets";

Definition

type BroadcastLook = "blue" | "night" | "paper";

Examples

import { resultsBoard, type BroadcastLook } from "@johnmorrisdotca/taisen-brackets";

const look: BroadcastLook = "paper";
console.log(resultsBoard({ title: "Final", rows: [{ name: "A" }] }, { look }).startsWith("<svg"));
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/taisen-brackets 0.20.0.