Initial commit from create-tui

This commit is contained in:
2026-04-10 22:54:47 +08:00
commit 3e05fd06fe
6 changed files with 350 additions and 0 deletions

16
src/index.tsx Normal file
View File

@@ -0,0 +1,16 @@
import { createCliRenderer, TextAttributes } from "@opentui/core";
import { createRoot } from "@opentui/react";
function App() {
return (
<box alignItems="center" justifyContent="center" flexGrow={1}>
<box justifyContent="center" alignItems="flex-end">
<ascii-font font="tiny" text="OpenTUI" />
<text attributes={TextAttributes.DIM}>What will you build?</text>
</box>
</box>
);
}
const renderer = await createCliRenderer();
createRoot(renderer).render(<App />);