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

Text field

A labeled text input backed by a TanStack Form field. Both renderers use the same value, validation state, and change handlers.

Web

React DOM

Type in the input. Blur the field to run blur validation.

Terminal

Ink + xterm.js

Loading terminal…

Click the terminal and type. Backspace removes a character; Enter moves focus. Use Tab to leave the terminal.

Terminal editing appends text and removes from the end; it does not offer a movable text cursor.