ZUI

Search documentation

Find a page or a heading.

Code Editor

A multi-file code editor that keeps the open files and the active one in context, and routes each file to a code, Markdown, image or font view.

tsx

Installation

bash

Usage

tsx
tsx

CodeEditor holds the open files and the active path and draws nothing; lay out a tree, a menu and CodeEditorContent inside it, and read the selection with useCodeEditor. It keeps no text of its own, so the host stores each file and reacts to onFileTextChange. A file's view says how it is shown: code, markdown, image, font or binary, and fileView classifies a path by its extension.

API reference

CodeEditor