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

Select

Choose one value from a finite list. The web uses a Radix select; the terminal cycles through the same options.

Web

React DOM
Status

Open the select, then choose an option with the mouse or arrow keys.

Terminal

Ink + xterm.js

Loading terminal…

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

The TUI shows the selected label inline instead of opening a popup.