Reference · Where every tie sits
FlagRequesttype
What a drawing asks a flags renderer for.
Import it
import type { FlagRequest } from "@johnmorrisdotca/taisen-brackets/layout";
Also exported from: @johnmorrisdotca/taisen-brackets
Definition
interface FlagRequest {
shape: FlagShape;
size: number;
theme: "inherit" | "light" | "dark";
}
Members
| Name | Type | Description |
|---|---|---|
shape | FlagShape | |
size | number | Width and height in pixels (the diameter, for a round flag). |
theme | "light" | "dark" | "inherit" |
|
Examples
import { type FlagRequest } from "@johnmorrisdotca/taisen-brackets";
const request: FlagRequest = { shape: "round", size: 32, theme: "dark" };
console.log(request);{ shape: 'round', size: 32, theme: 'dark' }What it prints (run when this page was built)