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

Autocomplete

Free text with suggested values. Both versions allow typing a custom value or choosing a suggestion.

Web

React DOM

Type to see matching suggestions, or choose a value from the browser’s suggestion list.

Terminal

Ink + xterm.js

Loading terminal…

Click the terminal and type to filter suggestions. ↑ / ↓ cycles through all options. Use Tab to leave the terminal.

The TUI displays up to three matching values below the field. Arrow keys cycle the complete option list.