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 section

A labeled content region for detail screens. Use it to give related information a consistent heading and spacing.

Web

React DOM
Project details

Website refresh

Small improvements, shipped often.

This example uses a collapsible section. Click its heading to collapse or expand.

Terminal

Ink + xterm.js

Loading terminal…

Click the terminal and press Space to collapse or expand both previews. Use Tab to leave the terminal.

Pass open and onOpenChange to share disclosure state. The terminal supports controlled collapse with Space.