flexiform-builder
v1.0.1
Published
A flexible form builder component
Downloads
12
Readme
Flexiform
Flexiform is a flexible and dynamic form generation library for modern web applications. It allows developers to create complex forms with ease and provides a seamless user experience.
Features
- Dynamic Form Generation: Create forms dynamically based on JSON schema.
- Validation: Built-in validation for various input types.
- Customizable: Easily customize the look and feel of your forms.
- Responsive: Fully responsive design for mobile and desktop.
Installation
To install Flexiform, use npm:
npm install flexiform
Usage
Here is a basic example of how to use Flexiform:
import Flexiform from "flexiform";
const schema = {
title: "User Registration",
fields: [
{ name: "username", type: "text", label: "Username", required: true },
{ name: "email", type: "email", label: "Email", required: true },
{ name: "password", type: "password", label: "Password", required: true },
],
};
const form = new Flexiform(schema);
form.render(document.getElementById("form-container"));
Documentation
For detailed documentation and examples, please visit the official documentation.
Contributing
We welcome contributions! Please read our contributing guidelines before submitting a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or feedback, please contact us at [email protected].