Let your data build your UI, with Astro components
Find a file
2022-09-25 21:52:34 +02:00
.vscode Initial commit 2022-09-25 20:09:11 +02:00
src feat: optional formGroup 2022-09-25 21:52:34 +02:00
test Initial commit 2022-09-25 20:09:11 +02:00
.editorconfig Initial commit 2022-09-25 20:09:11 +02:00
.eslintignore Initial commit 2022-09-25 20:09:11 +02:00
.eslintrc.cjs Initial commit 2022-09-25 20:09:11 +02:00
.gitignore docs: project readme 2022-09-25 21:38:24 +02:00
.prettierrc.cjs Initial commit 2022-09-25 20:09:11 +02:00
index.ts feat: multiple controls 2022-09-25 21:33:19 +02:00
package.json 0.0.1 2022-09-25 21:38:34 +02:00
README.md docs: project readme 2022-09-25 21:38:24 +02:00
tsconfig.json Initial commit 2022-09-25 20:09:11 +02:00

Astro Reactive Form 🔥

The Reactive Form component for Astro 🔥

Installation

npm i astro-reactive-form

Usage

---
import Form, { FormGroup } from "astro-reactive-form";

const form = new FormGroup([
  {
    name: 'first-name',
    value: 'Ayo',
    label: 'First Name',
  },
  {
    name: 'last-name',
    value: 'Ayco',
    label: 'Last Name',
  },
]);
---
<Form formGroup={form} />