# formite-html

> Easy forms with React hooks and HTML inputs

Latest version **1.0.0** (published 2019-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install formite-html
pnpm add formite-html
yarn add formite-html
bun add formite-html
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-09-03 |
| First published | 2019-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 32.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | joerneu |
| Maintainers | joerneu |
| Keywords | react, forms, hooks |

## Links

- npm: https://www.npmjs.com/package/formite-html
- Repository: https://github.com/formitedev/formite
- Homepage: https://www.formite.org
- Issues: https://github.com/formitedev/formite
- npm.io page: https://npm.io/package/formite-html

## 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

- 1.0.0 (latest) — 2019-09-03
- 0.2.3 — 2019-08-23

## README

# `formite-html`

> Easy forms with React hooks

Use formite with HTML input elements.

## Installation

`npm install formite-core formite-html`

or

`yarn add formite-core formite-html`

## Usage

```ts
import { useForm, useInput } from "formite-html"

const handleSubmit = (values: unknown) => {
    console.log(values);
};

const SimpleForm = () => {
    const { canSubmit, fields, Form, isDirty } = useForm({ firstName: "", lastName: "" }, handleSubmit);
    return (
        <Form>
            <input type="text" placeholder="First name" {...useInput(fields.firstName)} />
            <input type="text" placeholder="Last name" {...useInput(fields.lastName)} />
            <button type="submit" disabled={!(canSubmit && isDirty)}>Save</button>
        </Form>
    );
};
```

See Storybook for more examples.

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