Component library / Web + TUI

One component, two renderers.

One shared model drives both web and TUI renderers. The two views are in sync. Reset examples to return both to their starting values. Explore components that work in both web and TUI environments. The same libraries, hooks, functions, data, state, and types drive both; only the rendering component changes. This includes Tanstack libraries like Query, Table, Router etc.

Forms

Radio group

A single choice with a small set of options. The field stores the same string value in either renderer.

Web

React DOM
Status

Click an option or use arrow keys while the group has focus.

Terminal

Ink + xterm.js

Loading terminal…

Click the terminal, then use ← / → or h / l to choose. Use Tab to leave the terminal.

Web options are all visible; the terminal shows the current option and a keyboard hint.