Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

@yokai-tui/renderer

React terminal renderer — reconciler, Yoga Flexbox layout, keyboard/mouse events, ANSI output.

Install

pnpm add @yokai-tui/renderer react

Usage

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