npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

form-generator-json-app

v0.1.8

Published

library for generating forms dynamically using JSON.

Downloads

10

Readme

library for generating forms dynamically using JSON.

Demo URL :

More example, please visit a our website https://configuration-forms.herokuapp.com/

Import Library

Import a library file :

import DynamicForm from "../component/forms/dynamicForm";

Import Library

Import a library file :

function Example() {
  const formData = (data) => {
    console.log("form return data=>", data);
  };
  return <DynamicForm multiFormData={multiFormData} data={formData} />;
}

Field spectific on compoment design

Example => field: "InputBox",

"InputBox" type support => text, password, hidden, email, number, tel, range, search, color, url,
"ButtonBox" type support => button, reset, submit,
"CheckBox" type support => checkbox, radio,
"DateBox" type support =>  date, datetime-local, month, time, week
"Filebox" type support  => file, image, any
"TextareaBox" type support => textareaBox
"ElementBox" type support => HTML / static pages

Example page / from

pass multiFormData form data as you required : More example, please follow this json file : https://github.com/paghdjob/configurationForm/tree/main/public/json

[
  {
    formName: "signupform",
    action: "#",
    method: "GET",
    classNames: "row g-3 was-validated",
    title: "Sign Up Details",
    subtitile: "It's quick and easy.",
    text: "Sign up Details",
    fields: [
      {
        field: "InputBox",
        data: {
          label: "First Name",
          type: "text",
          fieldname: "firstname",
          parentClass: "col-md-6",
          classNames: "form-control",
          id: "",
          placeholder: "please enter your firstname",
          defaultValue: "",
          min: 4,
          max: 30,
          minLength: 4,
          maxLength: 30,
          readonly: false,
          required: true,
          title: "firstname",
        },
      },
      {
        field: "InputBox",
        data: {
          label: "Surname",
          type: "text",
          fieldname: "surname",
          parentClass: "col-md-6",
          classNames: "form-control",
          id: "",
          placeholder: "please enter your surname",
          defaultValue: "",
          min: 4,
          max: 30,
          minLength: 4,
          maxLength: 30,
          readonly: false,
          required: true,
          title: "surname",
        },
      },
      {
        field: "InputBox",
        data: {
          label: "Email Id",
          type: "text",
          fieldname: "emailid",
          parentClass: "col-md-12",
          classNames: "form-control",
          id: "",
          placeholder: "please enter your email id",
          defaultValue: "",
          min: 4,
          max: 30,
          minLength: 4,
          maxLength: 30,
          readonly: false,
          required: true,
          title: "emailid",
        },
      },
      {
        field: "InputBox",
        data: {
          label: "New Password",
          type: "password",
          fieldname: "newpassword",
          parentClass: "col-md-12",
          classNames: "form-control",
          id: "",
          placeholder: "please enter your password",
          defaultValue: "",
          min: 4,
          max: 30,
          minLength: 4,
          maxLength: 30,
          readonly: false,
          required: true,
          title: "password",
        },
      },
      {
        field: "DateBox",
        data: {
          label: "Date of birth",
          type: "date",
          fieldname: "dateofbirth",
          parentClass: "col-md-12",
          classNames: "form-control",
          id: "",
          placeholder: "select your birth date",
          defaultValue: "",
          min: "1900-01-01",
          max: "2022-07-22",
          minLength: 4,
          maxLength: 30,
          readonly: false,
          required: true,
          title: "birthdate",
        },
      },
      {
        field: "ButtonBox",
        data: {
          type: "button",
          fieldname: "buttonSave",
          parentClass: "col-md-2 row m-2",
          classNames: "btn btn-primary",
          id: "",
          defaultValue: "Sign Up",
          readonly: false,
        },
      },
    ],
  },
];

Incase you face any problem or need help, please contact on [email protected]

npm i

npm run start

npx prettier --write .

download URL :

https://www.npmjs.com/package/form-generator-json-app