@yokai-tui/renderer
v0.7.1
Published
Serious React TUI renderer for serious CLI apps. Pure TypeScript Yoga layout, diff-based rendering, ScrollBox, alt buffer, mouse events, draggable and resizable components.
Maintainers
Readme
@yokai-tui/renderer
React terminal renderer — reconciler, Yoga Flexbox layout, keyboard/mouse events, ANSI output.
Install
pnpm add @yokai-tui/renderer reactUsage
import { render, Box, Text } from '@yokai-tui/renderer'
await render(
<Box padding={1}>
<Text bold color="green">Hello from Yokai</Text>
</Box>
)Features
- Pure TypeScript Yoga layout (no WASM/native bindings)
- Diff-based terminal rendering
- ScrollBox with sticky scroll
- Full keyboard + mouse event system
- React 18+ reconciler
License
MIT
