# @crpt/react-form

> react-form React component

Latest version **1.0.18** (published 2019-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @crpt/react-form
pnpm add @crpt/react-form
yarn add @crpt/react-form
bun add @crpt/react-form
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.18 |
| Published | 2019-02-21 |
| First published | 2018-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 85.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | dlit, embalex, fantik217, ivanvlado, solnik |
| Keywords | react-component |

## Links

- npm: https://www.npmjs.com/package/@crpt/react-form
- Repository: https://github.com/crptteam/react-breadcrumbs
- Issues: https://github.com/crptteam/react-breadcrumbs/issues
- npm.io page: https://npm.io/package/@crpt/react-form

## Dependencies (3)

- [coveralls](https://npm.io/package/coveralls.md) ^3.0.2
- [codecov.io](https://npm.io/package/codecov.io.md) ^0.1.6
- [styled-components](https://npm.io/package/styled-components.md) 1.4.6 - 3

## Recent versions

- 1.0.18 (latest) — 2019-02-21
- 1.0.1 (next) — 2018-05-31
- 1.0.16 — 2019-01-24
- 1.0.15 — 2019-01-09
- 1.0.14 — 2018-10-16
- 1.0.13 — 2018-06-26
- 1.0.12 — 2018-06-26
- 1.0.11 — 2018-06-15
- 1.0.10 — 2018-06-10
- 1.0.9 — 2018-06-10
- 1.0.8 — 2018-06-10
- 1.0.7 — 2018-06-01
- 1.0.6 — 2018-06-01
- 1.0.5 — 2018-06-01
- 1.0.4 — 2018-05-31
- … 3 more at https://npm.io/package/@crpt/react-form/versions

## README

# react-form

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]

# Form

Form component. Can be used to wrap Input, Select and DatePicker components. Can simplify mass event handling for a set of components.

## Usage

```javascript

import { Form } from  "@crpt/react-form";
import { DatePicker } from  "@crpt/react-datepicker";


<Form onSubmit={vals => console.log('vals', vals)}>
    <DatePicker name="date" />
</Form>

```

### Form

| PropName | Description | Example |
|---|---|---|
| onSubmit: String | Called on submit. |  `<Form onSubmit={vals => console.log('vals', vals)}>` |
| onCollapse: Function | Called on collapse. |  `<Form onCollapse={() => console.log('collapsed')}>` |
| onClear: Function | Called on clear. |  `<Form onClear={() => console.log('cleared')}>` |


[build-badge]: https://img.shields.io/travis/user/repo/master.png?style=flat-square
[build]: https://travis-ci.org/user/repo

[npm-badge]: https://img.shields.io/npm/v/npm-package.png?style=flat-square
[npm]: https://www.npmjs.org/package/npm-package

[coveralls-badge]: https://img.shields.io/coveralls/user/repo/master.png?style=flat-square
[coveralls]: https://coveralls.io/github/user/repo

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