Learn from practical examples and start building faster
Using Next.js App Router?
These examples are framework-agnostic. In the Next.js App Router, add "use client"at the top of the file since Treege components are interactive. It isn't needed in plain React setups (Vite, CRA, etc.).
Multi-Step Forms
Complex onboarding flow with conditional steps and validation
E-commerce Checkout
Dynamic checkout process with payment and shipping options
Medical Questionnaire
Patient intake forms with branching logic based on symptoms
User Registration
Flexible signup flow with role-based field visibility
Loan Application
Financial forms with complex validation and calculations
Product Configuration
Interactive product customization with real-time preview
Simple Contact Form
A basic form with validation and submission handling
What you'll learn
Setting up the editor and renderer, basic input types, form validation, and handling submissions
Complete Example
Flow Definition
This is the flow structure you would create in the editor:
In a real application, you would use the TreegeEditor to create this flow visually instead of defining it manually.
Ready to Try It Yourself?
Explore these examples in the interactive playground
All examples are production-ready and can be used as starting points for your projects. Check the documentation for more details.