Skip to content

karthikricssion/react-form-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Form Builder

Screenshot of final version - Demo

Final version

How to use

  • Drag and drop the form element from the left sidebar to drop area to start creating forms
  • Edit the properties of form element by click on the dropped element
  • Delete the element by just clicking the close icon on the dropped element
  • After finishing click "save" button on the top right corner of the screen

Component Breakup

Component Breakup

First Version - Pure Javascript ( using mouse events ) Demo - Github

First version js mouse events

Second Version - Pure Javascript ( using Drag events ) - Demo - Github

Second version js drag events

Thoughts on Features

  • Add more Form elements
  • Add more properties for each form elements eg: add labels to a short text, required, hit message, etc.,
  • Add Redux for maintaining state
  • Create a timeline of user changes, so the user can undo changes
  • Options to create multiple forms
  • Preview form created
  • Auto saving the changes
  • Sample templates to get started initially

ToDo

  • Try on JS with mouse events
  • Try JS with drag events
  • Data driven form elements
  • Integrate local storage
  • Work on Version 2 design
  • Get started with React
  • Worked on "learn by doing"
  • Come up with project structure
  • Start working on builder using ReactJS
  • Add comments

Folder structure of the project

.
├── App.css
├── App.js
├── App.test.js
├── assets
│   ├── button.png
│   ├── heading.png
│   └── text-input.png
├── components
│   ├── ElementSettings.js
│   ├── FormBuilder.js
│   ├── FormElement.js
│   ├── SideBar.js
│   ├── SideBarFormElement.js
│   └── TopBar.js
├── const.js
├── index.css
├── index.js
├── logo.svg
├── normalize.css
├── serviceWorker.js
├── setupTests.js
└── utils.js

    yarn start

Open http://localhost:3000 to view it in the browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages