Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Lindeneg/cl-form-component

Repository files navigation

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

Releases

No releases published

Packages

No packages published