Initial commit from create-tui

This commit is contained in:
2026-04-05 13:33:09 +01:00
commit b00871fc07
7 changed files with 332 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import {
ASCIIFont,
Box,
createCliRenderer,
Text,
TextAttributes,
} from "@opentui/core";
const renderer = await createCliRenderer({ exitOnCtrlC: true });
renderer.root.add(
Box(
{ alignItems: "center", justifyContent: "center", flexGrow: 1 },
Box(
{ justifyContent: "center", alignItems: "flex-end" },
ASCIIFont({ font: "tiny", text: "OpenTUI" }),
Text({ content: "What will you build?", attributes: TextAttributes.DIM }),
),
),
);