# form-lit

> Lit form library written in React

Latest version **0.3.3** (published 2020-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install form-lit
pnpm add form-lit
yarn add form-lit
bun add form-lit
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.3 |
| Published | 2020-04-09 |
| First published | 2019-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 117 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joel Voss |
| Maintainers | joelvoss |

## Links

- npm: https://www.npmjs.com/package/form-lit
- Repository: https://github.com/joelvoss/form-lit
- Issues: https://github.com/joelvoss/form-lit/issues
- npm.io page: https://npm.io/package/form-lit

## Dependencies (4)

- [immer](https://npm.io/package/immer.md) 6.0.3
- [marked](https://npm.io/package/marked.md) 0.8.2
- [@emotion/core](https://npm.io/package/@emotion/core.md) 10.0.28
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) 7.9.2

## Recent versions

- 0.3.3 (latest) — 2020-04-09
- 0.3.2 — 2020-03-13
- 0.3.1 — 2020-03-02
- 0.3.0 — 2020-03-02
- 0.2.8 — 2020-03-02
- 0.2.7 — 2020-02-22
- 0.2.6 — 2020-02-11
- 0.2.5 — 2020-02-02
- 0.2.4 — 2020-01-28
- 0.2.3 — 2020-01-24
- 0.2.2 — 2020-01-20
- 0.2.1 — 2020-01-13
- 0.2.0 — 2020-01-06
- 0.1.1 — 2019-12-31
- 0.1.0 — 2019-12-29
- … 6 more at https://npm.io/package/form-lit/versions

## README

# form-lit

Lit form library written in React

## Install

```text
npm install form-lit  OR  yarn add form-lit
```

## Example

```js
import React from 'react';
import ReactDOM from 'react-dom';
import { Form, Input } from 'form-lit';

const App = () => {
  const handleSubmit = form => {
    console.log(form);
    // -> { my-input: "dynamic value" }
  };

  return (
    <Form onSubmit={handleSubmit}>
      <Input type={'text'} label="Default Input" name="my-input" />

      <button type="submit">Submit</button>
    </Form>
  );
};

ReactDOM.render(<App />, document.getElementById('root'));
```

Have a look inside the `example/` directory to see the development kitchensink
application using a multitude of available form fields.

## Local development

1. Clone this repository and install it's dependencies

   ```bash
   # Using npm
   npm install

   # Using yarn
   yarn install
   ```

2. Validate project setup

   ```bash
   # Using npm
   npm run validate

   # Using yarn
   yarn validate
   ```

3. Navigate into the `example/` folder to start your local development
   environment.

   ```bash
   cd ./example

   # Using npm
   npm install && npm start

   # Using yarn
   yarn install && yarn start
   ```

   This will start a simple React application powered by Parcel on `http://localhost:1234`.

---

This project was bootstrapped with [jvdx](https://github.com/joelvoss/jvdx).

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