2.0.1 • Published 3 years ago

cl-form-component v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

3 years ago

2.0.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago