This is a collection of custom FORMIO components and templates for Formsflow.ai project.
- To create Build with all dependencies
npm run build
Output file name : customformio.js
- To create build by excluding form-io dependencies so that it can resolve it from consumer application.
npm run buildExcludeFormio
Output file name : customformio-ex.js
Including direct js
<script src="https://unpkg.com/formsflow-formio-custom-elements/dist/customformio.js"></script>
npm install @aot-technologies/formsflow-formio-custom-elements --save
import { Components } from "react-formio";
// Set custom formio elements - Code splitted
import("@aot-technologies/formsflow-formio-custom-elements/dist/customformio-ex").then(
(FormioCustomEx) => {
Components.setComponents(FormioCustomEx.components);
}
);