diff --git a/README.md b/README.md index b8f5c8d..01e3dad 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
-
+
Astro Reactive Library
@@ -10,7 +10,7 @@
-
+
-
+
👉 _[Join our contributors!](https://github.com/astro-reactive/astro-reactive/blob/main/CONTRIBUTING.md)_
diff --git a/apps/demo/src/pages/index.astro b/apps/demo/src/pages/index.astro
index 2a645c4..999bab5 100644
--- a/apps/demo/src/pages/index.astro
+++ b/apps/demo/src/pages/index.astro
@@ -110,6 +110,6 @@ const submit: Submit = {
theme={theme}
submitControl={submit}
action="https://localhost"
- method="POST"
+ method="post"
/>
diff --git a/apps/docs/src/components/Footer/AvatarList.astro b/apps/docs/src/components/Footer/AvatarList.astro
index f6b0d87..c6334ed 100644
--- a/apps/docs/src/components/Footer/AvatarList.astro
+++ b/apps/docs/src/components/Footer/AvatarList.astro
@@ -5,7 +5,7 @@ type Props = {
};
const { path } = Astro.props as Props;
const resolvedPath = `apps/docs/${path}`;
-const url = `https://api.github.com/repos/ayoayco/astro-reactive-library/commits?path=${resolvedPath}`;
+const url = `https://api.github.com/repos/astro-reactive/astro-reactive/commits?path=${resolvedPath}`;
const commitsURL = `https://github.com/astro-reactive/astro-reactive/commits/main/${resolvedPath}`;
type Commit = {
@@ -180,4 +180,3 @@ const additionalContributors = unique.length - recentContributors.length; // lis
margin-left: 0.75rem;
}
-
diff --git a/apps/docs/src/pages/en/api/form/form-component.md b/apps/docs/src/pages/en/api/form/form-component.md
index 607d019..4d864ed 100644
--- a/apps/docs/src/pages/en/api/form/form-component.md
+++ b/apps/docs/src/pages/en/api/form/form-component.md
@@ -158,22 +158,41 @@ This is a very crude solution to prevent having multiple submit buttons. For sug
## Properties
-The following are input properties a `Form` component can take.
+The following are input properties a `Form` component can take. Only the `formGroups` property is required.
-| Property | Type | |
-| ------------------------------------------- | -------------------------- | -------- |
-| [formGroups](#formgroups) | `FormGroup \| FormGroup[]` | required |
-| [readOnly](#readonly) | `boolean` | optional |
-| [showValidationHints](#showvalidationhints) | `boolean` | optional |
-| [validateOnLoad](#validateOnLoad) | `boolean` | optional |
-| [submitControl](#submitcontrol) | `Submit` | optional |
-| [theme](#theme) | `'light' \| 'dark'` | optional |
+| Property | Type | |
+| ------------------------------------------- | -------------------------- | ----------------------------------- |
+| [formGroups](#formgroups) | `FormGroup \| FormGroup[]` | required |
+| [action](#action) | `string` | optional |
+| [method](#method) | `'get' \| 'post' \| 'dialog'` | optional |
+| [readOnly](#readonly) | `boolean` | optional |
+| [showValidationHints](#showvalidationhints) | `boolean` | optional |
+| [submitControl](#submitcontrol) | `Submit` | optional |
+| [theme](#theme) | `'light' \| 'dark'` | optional |
+| [validateOnLoad](#validateOnLoad) | `boolean` | optional |
### `formGroups`
Type: `FormGroup | FormGroup[]`
-Determines how the form is are rendered
+Determines how the form is rendered
+
+### action
+
+Type: `string`
+
+Sets the `action` [attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-action) for the form. Set this to the URL that processes the form submission.
+
+### method
+
+Type: HTTPSubmitMethod
+
+Sets the `method` [attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method) for the form. Set this to the HTTP method to submit the form: 'post', 'get', or 'dialog'.
+
+From [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method):
+- `post` - The POST method; form data sent as the request body.
+- `get (default)` - The GET method; form data appended to the action URL with a ? separator. Use this method when the form has no side effects.
+- `dialog` - When the form is inside a