Let your data build your UI, with Astro components
.vscode | ||
src | ||
test | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.cjs | ||
.gitignore | ||
.prettierrc.cjs | ||
index.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
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} />