# cl-form-component

> React Form component with built-in validation.

Latest version **2.0.1** (published 2021-10-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cl-form-component
pnpm add cl-form-component
yarn add cl-form-component
bun add cl-form-component
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2021-10-20 |
| First published | 2021-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 196.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Christian Lindeneg |
| Maintainers | lindeneg |
| Keywords | react, react-form, react-component, form-state, form-validation |

## Links

- npm: https://www.npmjs.com/package/cl-form-component
- Repository: https://github.com/Lindeneg/cl-form-component
- Homepage: http://lindeneg.github.io/cl-form-component
- npm.io page: https://npm.io/package/cl-form-component

## Dependencies (1)

- [cl-use-form-state](https://npm.io/package/cl-use-form-state.md) ^2.0.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2021-10-20
- 2.0.0 — 2021-10-05
- 1.0.5 — 2021-05-06
- 1.0.4 — 2021-05-06
- 1.0.3 — 2021-05-05
- 1.0.2 — 2021-05-05
- 1.0.1 — 2021-05-05
- 1.0.0 — 2021-05-05

## README

# 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](https://github.com/Lindeneg/cl-use-form-state) and uses [material-ui 4](https://v4.mui.com/) as its component suite. All components can be fully customized within the boundaries of material-ui.

## Peer Dependencies

- [react](https://npmjs.com/package/react) >=17.0.2
- [react-dom](https://www.npmjs.com/package/react-dom) >=17.0.2
- [@material-ui/core](https://www.npmjs.com/package/@material-ui/core) >=4.12.3

---

## Install

`yarn add cl-form-component`

---

## Usage

Check out [this](https://lindeneg.github.io/cl-form-component) link for [StoryBook](https://storybook.js.org/) examples.

Check out full documentation [here](https://github.com/Lindeneg/cl-form-component/blob/master/docs/README.md).

---

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

type FormInputs = {
  something: string;
};

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

---
_Source: https://npm.io/package/cl-form-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
