The Form Builder is a custom drag-and-drop form builder built using Next.js. It allows users to create and customize forms dynamically by dragging and dropping various form elements. This project is designed to be lightweight, fast, and easy to use.
This is a modified version of already existing Form Builder by Indie UI.
✨Demo: FormBuilder.
- Drag-and-Drop Interface: Easily drag and drop form elements to build your form.
- Customizable Form Elements: Supports a wide range of form elements such as:
- Input fields
- Textarea
- Checkbox
- Radio buttons
- Toggle groups
- Sliders
- Select dropdowns
- Date pickers
- Headers (H1, H2, H3)
- Paragraphs
- Separators
- Dynamic Rendering: Form elements are dynamically rendered based on user input.
- Shadcn Components: Utilizes
shadcnUI components for a clean and modern design. - Lightweight and Fast: Built with Bun for faster development and runtime performance.
- Install as UI Component in your project (experimental):
This will create
npx dubu add form_builder
form_builderfolder inside the main/srcdirectory. This is still in development and it doesn't install all dependencies. You have to install Shadcn components and other required dependencies manually.
- Clone the repository:
git clone https://github.com/Subu19/form_builder.git
- Navigate to the project directory:
cd form-builder - Install dependencies using Bun:
bun install
To start the application in production mode, run:
bun startTo start the development server, run:
bun dev- Next.js: React framework for server-rendered applications.
- Shadcn: UI component library for building modern interfaces.
- Bun: Fast all-in-one JavaScript runtime.
- Lucide React: Icon library for React.
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes.
- Submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
- Shadcn for providing a beautiful and functional UI component library.
- Next.js for making server-rendered React applications easy to build.
- Bun for its fast and efficient runtime.
Enjoy building forms with the Form Builder! 🚀