diff --git a/demo/src/pages/index.astro b/demo/src/pages/index.astro
index 0abac81..6fdb99e 100644
--- a/demo/src/pages/index.astro
+++ b/demo/src/pages/index.astro
@@ -16,26 +16,22 @@ const form = new FormGroup([
form.name = "Simple Form";
+// insert a control
form.controls.push(
new FormControl({
type: "checkbox",
name: "is-awesome",
label: "is Awesome?",
labelPosition: "right",
- value: "checked",
- })
-);
-
-form.controls.push(
- new FormControl({
- type: "button",
- name: "set-username",
- value: "set username",
})
);
+// get the FormControl object
const userNameControl = form.get("username");
+
+// set values dynamically
userNameControl?.setValue("RAMOOOON");
+form.get("is-awesome")?.setValue("checked");
---
diff --git a/packages/astro-reactive-form/README.md b/packages/astro-reactive-form/README.md
index 291cb4c..8027d13 100644
--- a/packages/astro-reactive-form/README.md
+++ b/packages/astro-reactive-form/README.md
@@ -19,49 +19,49 @@ npm i astro-reactive-form
```astro
---
-import type { FormControl, FormGroup } from 'astro-reactive-form/core';
-import Form from 'astro-reactive-form';
-
-// example of a form control
-const radio: FormControl = {
- name: 'is-good-looking',
- type: 'radio',
- label: 'Is Good Looking?',
- value: 'checked',
- labelPosition: 'right',
-};
+import { FormControl, FormGroup } from "astro-reactive-form/core";
+import Form from "astro-reactive-form";
+// create a form group (rendered as