Command Palette

Search for a command to run...

Installation

Install Treege using your preferred package manager:

npm install treege
pnpm add treege
yarn add treege
bun add treege

Module Structure

Treege offers multiple import paths for optimal bundle size:

Full Package

Import both editor and renderer:

import { TreegeEditor, TreegeRenderer } from "treege"

Editor Only

Import only the visual editor:

import { TreegeEditor } from "treege/editor"

Renderer (Web)

Import only the web form renderer:

import { TreegeRenderer } from "treege/renderer"

Renderer (React Native)

Import the React Native renderer:

import { TreegeRenderer } from "treege/renderer-native"

Requirements

Web Applications

  • React 18 or 19
  • TypeScript 5+ (optional but recommended)

React Native Applications

  • React 18 or 19
  • React Native 0.71+
  • TypeScript 5+ (optional but recommended)
  • Optional: react-native-document-picker for file input support

Next Steps