flexiforms
v1.0.12
Published
dynamic form builder
Downloads
936
Maintainers
Readme
flexiforms
flexiforms
is a dynamic form builder package for React applications, allowing users to easily create forms through drag-and-drop functionality. This package supports both Vite and Next.js projects, and requires the host project to define certain environment variables for proper functionality.
Installation
To install flexiforms
, run:
npm install flexiforms
OR
yarn add flexiforms
Usage
Once installed, you can import the package and start using it in your React components.
"use client";
import React from "react";
import { FormDashboard } from "flexiforms";
const page = () => {
return (
<>
<FormDashboard />
</>
);
};
export default page;
Environment Variables
VITE_JSON_SERVER_URL = https://api.example.com
This sets the API URL that flexiforms will use for API requests. You can replace https://api.example.com with your actual API endpoint.
For Next.js projects, add the following to your .env.local file:
NEXT_PUBLIC_JSON_SERVER_URL = https://api.example.com