Installation
Install Treege using your preferred package manager:
npm install treegepnpm add treegeyarn add treegebun add treegeModule 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"Note: Use this import when you only need the visual editor, not the form renderer.
Renderer (Web)
Import only the web form renderer:
import { TreegeRenderer } from "treege/renderer"Note: Use this import when you only need to render forms on web platforms. This significantly reduces bundle size.
Renderer (React Native)
Import the React Native renderer:
import { TreegeRenderer } from "treege/renderer-native"Note: Use this import for React Native applications. See the React Native Guide for detailed setup instructions.
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-pickerfor file input support