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 three 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 Only

Import only the form renderer:

import { TreegeRenderer } from "treege/renderer"

Requirements

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

Next Steps