rff-wrapper

1.0.33 • Public • Published

mui-rff

Maintainability

Test Coverage

wrapper for material ui react input components with react-final-form

React : A JavaScript library for building user interfaces

Material-UI : React components for faster and easier web development.

react-final-form : A JavaScript library for building user interfaces

Documtation could use some work docs

Usage:

  • npm i rff-wrapper
import React from 'react';
import {
  Form,
  MuiInput,
  MuiCheckbox,
  MuiSubmit,
} from 'rff-wrapper';

const FormRender = () => {
  const onSubmit = async (values) => {
    console.log('onSubmit values', values);
  };

  return (
      <Form
        onSubmit={onSubmit}
        render={(p) => {
          return (
            <form onSubmit={p.handleSubmit}>
              <MuiInput name="name" label="name" />
              <MuiCheckbox name="isCool" label="is cool" />
              <MuiSubmit />
            </form>
          );
        }}
      />
  );
};

Readme

Keywords

none

Package Sidebar

Install

npm i rff-wrapper

Weekly Downloads

2

Version

1.0.33

License

MIT

Unpacked Size

241 kB

Total Files

37

Last publish

Collaborators

  • apjames93