Reference · Where every tie sits
BackgroundPresetNametype
The name of one of the poster backgrounds.
Import it
import type { BackgroundPresetName } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets/backgrounds, @johnmorrisdotca/taisen-brackets
Definition
type BackgroundPresetName = shared.BackgroundPresetName;
Examples
import { backgroundSvg, type BackgroundPresetName } from "@johnmorrisdotca/taisen-brackets/backgrounds";
const preset: BackgroundPresetName = "midnight";
console.log(backgroundSvg(preset, { width: 400, height: 300 }).body.length > 0);trueWhat it prints (run when this page was built)