# @domodel/form

> Form system for domodel

Latest version **0.0.15** (published 2023-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @domodel/form
pnpm add @domodel/form
yarn add @domodel/form
bun add @domodel/form
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.15 |
| Published | 2023-09-19 |
| First published | 2021-09-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Romain Lebesle |
| Maintainers | thoughtsunificator |

## Links

- npm: https://www.npmjs.com/package/@domodel/form
- Repository: https://github.com/thoughtsunificator/domodel-form
- Homepage: https://github.com/thoughtsunificator/domodel-form#readme
- Issues: https://github.com/thoughtsunificator/domodel-form/issues
- npm.io page: https://npm.io/package/@domodel/form

## Dependencies (1)

- [domodel](https://npm.io/package/domodel.md) ^1.0.46

## Recent versions

- 0.0.15 (latest) — 2023-09-19
- 0.0.14 — 2022-12-19
- 0.0.13 — 2021-10-18
- 0.0.12 — 2021-10-06
- 0.0.11 — 2021-10-05
- 0.0.10 — 2021-10-04
- 0.0.9 — 2021-10-03
- 0.0.8 — 2021-09-22
- 0.0.7 — 2021-09-18
- 0.0.6 — 2021-09-18
- 0.0.5 — 2021-09-12
- 0.0.4 — 2021-09-12
- 0.0.3 — 2021-09-12
- 0.0.2 — 2021-09-12
- 0.0.1 — 2021-09-12

## README

# domodel-form

Form system for [domodel](https://github.com/thoughtsunificator/domodel).

## Getting started

### Installing

- ``npm install @domodel/form``

### Usage

```javascript
import { Core, Observable, Binding } from "domodel"
import { FormModel, FormBinding, Form } from "@domodel/form"
import MyFormModel from "./form.js"

export default class extends Binding {

  onCreated() {

    const form = new Form()

    this.listen(form, "submitted", data => {
      console.log(`Your name is: ${data.name}`)
    })

    Core.run(FormModel(MyFormModel), { binding: new FormBinding({ form }) })

  }

}

```

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