Code Monkey home page Code Monkey logo

react-final-form-generator's Introduction

react-final-form-generator

Generating form over react-final-form

Feature

  • generation form use JSON
  • condition

Usage

import Form, { Control } from 'react-final-form-generator'

// Fields
const fields = [
  {
    name: 'email',
    label: 'Email',
    type: 'TextField',
  },
  {
    name: 'submit',
    label: 'Submit',
    type: 'Button',
    condition: {
      when: 'email',
      is: 'test',
      action: '==',
    },
  },
]
// ...code

function renderForm() {
  return (
    <Form
      fields={fields}
      onSubmit={onSubmit}
    >
      <Control fields={fieldsOne} />
      <Control fields={fieldsTwo} />
    </Form>
  )
}

TODO

  • [] validation

react-final-form-generator's People

Contributors

batazor avatar dependabot[bot] avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

alessandrostone

react-final-form-generator's Issues

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @mui/material ^5.14.13
  • final-form ^4.20.10
  • lodash ^4.17.21
  • react ^17.0.2
  • react-dom ^17.0.2
  • react-color ^2.19.3
  • react-final-form ^6.5.9
  • react-google-recaptcha ^1.1.0
  • @babel/cli ^7.23.0
  • @babel/core ^7.23.2
  • @babel/plugin-proposal-decorators ^7.23.2
  • @babel/plugin-proposal-do-expressions ^7.22.5
  • @babel/plugin-proposal-export-default-from ^7.22.17
  • @babel/plugin-proposal-function-bind ^7.22.5
  • @babel/plugin-proposal-logical-assignment-operators ^7.20.7
  • @babel/plugin-proposal-nullish-coalescing-operator ^7.18.6
  • @babel/plugin-proposal-numeric-separator ^7.18.6
  • @babel/plugin-proposal-optional-chaining ^7.21.0
  • @babel/plugin-proposal-pipeline-operator ^7.22.15
  • @babel/plugin-proposal-throw-expressions ^7.22.5
  • @babel/preset-env ^7.23.2
  • @babel/preset-react ^7.22.15
  • @storybook/addon-actions ^6.5.16
  • @storybook/cli ^7.4.6
  • @storybook/react ^6.5.16
  • babel ^6.23.0
  • babel-eslint ^10.1.0
  • babel-loader ^8.3.0
  • classnames ^2.3.2
  • eslint ^6.8.0
  • eslint-config-airbnb ^18.2.1
  • eslint-loader ^2.2.1
  • eslint-plugin-import ^2.28.1
  • eslint-plugin-jsx-a11y ^6.7.1
  • eslint-plugin-react ^7.33.2
  • prop-types ^15.8.1
  • webpack-cli ^3.3.12
  • react ^17.0.2
  • react-dom ^17.0.2
  • @mui/material ^5.14.13
  • lodash ^4.17.21

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.