This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

cl-form-component
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

cl-form-component

Easily create forms in React with validation and TypeScript support using material-ui 4.

This library is built on top of cl-use-form-state and uses material-ui 4 as its component suite. All components can be fully customized within the boundaries of material-ui.

Peer Dependencies


Install

yarn add cl-form-component


Usage

Check out this link for StoryBook examples.

Check out full documentation here.


import { Form } from "cl-form-component";

type FormInputs = {
  something: string;
};

<Form<FormInputs>
  entries={{
    something: {
      input: {
        initialValue: "",
      },
    },
  }}
  onFormSubmit={(isValid, inputs) => console.log(isValid, inputs)}
/>;

Package Sidebar

Install

npm i cl-form-component

Weekly Downloads

8

Version

2.0.1

License

MIT

Unpacked Size

201 kB

Total Files

26

Last publish

Collaborators

  • christianlindeneg