1.1.0 • Published 4 years ago
azlan-form-builder v1.1.0
Azlan Form Builder
AFB is a ReactJS Form Builder plugin that is easy to integrate in any react app. It also supports drag and drop updates of form elements.
Installation
Use the package manager npm to install.
npm install azlan-form-builder
Usage
import FormBuilder from "azlan-form-builder";
/// then use it as
const [items, setItems] = useState([]);
const formUpdate = (newItemsList) => {
console.log(newItemsList);
/// you can call an API to save form elements as soon as they are updated
};
<FormBuilder onUpdate={formUpdate} items={items} />
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.