1.0.12 • Published 2 months ago
projecio v1.0.12
projecio
Made with create-react-library
Install
npm install --save projecio
Usage
import React from 'react';
import { FormBuilderComponent, FormGenerator } from "projecio";
const Form = () => {
const formData = [{
id: 432,
type: 'header h4',
label: 'Registration Form',
className: 'form-control',
style: { backgroundColor: '', width: '100%' },
tooltip: '',
alignment: 'text-center',
}];
const onSave = (data) => {
// Handle save data here
}
const onSubmit = (data) => {
// Handle submit data here
}
return (
<>
<FormBuilderComponent onSave={onSave} />
<FormGenerator array={formData} onSubmit={onSubmit} />
</>
);
}
export default Form;