Skip to content
/ rff-wrapper Public template

material ui react components with react-final-form

License

Notifications You must be signed in to change notification settings

apjames93/rff-wrapper

Repository files navigation

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>
          );
        }}
      />
  );
};

About

material ui react components with react-final-form

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages