# @tommy4st/redyform

> Presentation agnostic, dynamic forms framework for Angular

Latest version **0.1.2** (published 2020-05-29) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @tommy4st/redyform
pnpm add @tommy4st/redyform
yarn add @tommy4st/redyform
bun add @tommy4st/redyform
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2020-05-29 |
| First published | 2020-05-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 306.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thomas Wilhelm-Stein |
| Maintainers | tommy4st |
| Keywords | angular, form |

## Links

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

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

- 0.1.2 (latest) — 2020-05-29
- 0.1.1 — 2020-05-20

## README

# Redyform

Presentation agnostic, dynamic forms framework for Angular

```sh
npm install @tommy4st/redyform
```

## Prerequisite

This library is just a framework for model-driven forms. There are no actually implemented form elements in it. You have to implement them yourself using your UI framework of choice.

There is a special kind of fields, which name ends in "array". They are always treated as a collection type.

Please see [redyform-example](https://github.com/tommy4st/redyform/tree/master/projects/redyform-example/src) for some help and a some [basic field definitions](https://github.com/tommy4st/redyform/blob/master/projects/redyform-example/src/app/redyform-basics.components.ts).

## How to use

TS:
```js
jsonModel: RedyformModel = [
  {
    type: 'string',
    name: 'name',
    label: 'Your Name'
  },
  {
    type: 'array',
    name: 'comments',
    children: [
      {
        type: 'textarea',
        name: 'comment',
        label: 'Yout Comment'
      }
    ]
  }
];

data: any;
```

HTML:
```html
<redyform [model]="jsonModel" [(ngModel)]="data"></redyform>
```

## Build

Run `ng build redyform` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

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