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.

Structure

Detail tabs

Organize related details into named panels. Both renderers share the selected tab and render the active panel.

Web

React DOM

Website refresh · In progress

Click a tab, or focus the tab list and use arrow keys.

Terminal

Ink + xterm.js

Loading terminal…

Click the terminal and press h / l to move between panels. Use Tab to leave the terminal.

Tabs share their values, labels, and content composition. The renderer chooses the elements for each environment.