Installation
Install Treege using your preferred package manager:
npm install treegepnpm add treegeyarn add treegebun add treegeModule 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"Note: Use this import when you only need the visual editor, not the form renderer.
Renderer Only
Import only the form renderer:
import { TreegeRenderer } from "treege/renderer"Note: Use this import when you only need to render forms, not edit them. This significantly reduces bundle size.
Requirements
- React 18 or 19
- TypeScript 5+ (optional but recommended)