Skip to content

Commit 263e625

Browse files
committed
feat: typos
1 parent 29e1f87 commit 263e625

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

src/content/docs/guides/forms.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ yarn add @astro-utils/forms
5353
Edit your `astro.config.ts` to add the integration
5454
```ts
5555
import { defineConfig } from 'astro/config';
56-
import formsDebug from "@astro-utils/forms/dist/integration.js";
56+
import formDebug from "@astro-utils/forms/dist/integration.js";
5757

5858
export default defineConfig({
5959
output: 'server',
60-
integrations: [formsDebug]
60+
integrations: [formDebug]
6161
});
6262
```
63-
This integration will easy you debugging by avoiding the browser popups every vite reload.
63+
This integration will easy you're debugging by avoiding the browser popups every vite reload.
6464

6565

6666
Edit

src/content/docs/reference/forms/components.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ It includes the following attributes:
2424
- **props** - props for the `as` element
2525

2626
```astro
27-
<BInput type="date" name="meetingDate" min="2023-2-2" max"2023-4-2" required/>
27+
<BInput type="date" name="meetingDate" min="2023-2-2" max="2023-4-2" required/>
2828
```
2929

3030
### BTextarea
@@ -72,7 +72,8 @@ The select option
7272
```
7373

7474
## Form controls
75-
`BButton` is the general form control. You can also use it without `BindForm` component
75+
`BButton` is the general form control. You can also use it without `Bind` data.
76+
7677
Attributes:
7778
- **onClick** - function to execute when the button clicked
7879
- **connectId** - (optional) name for the button action (auto-generate by default)
@@ -84,11 +85,10 @@ function sayHi(){
8485
console.log('Hi');
8586
}
8687
---
87-
<BButton onClick={sayHi}>Say Hi</BButton>
88-
88+
<BindForm>
89+
<BButton onClick={sayHi}>Say Hi</BButton>
90+
<BindForm/>
8991
```
90-
### Note
91-
If you want the the button click will effect on JSX that appears before the button, it must be inside a `BindForm`
9292

9393
## Form Error
9494

src/content/docs/reference/forms/session.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,18 @@ Use can get the session with the activation of web forms
1313

1414
```astro
1515
---
16-
import { BButton } from "@astro-utils/forms/forms.js";
16+
import { BindForm, BButton } from "@astro-utils/forms/forms.js";
1717
const { session } = Astro.locals;
1818
1919
function increase() {
2020
session.counter ??= 0;
2121
session.counter++;
2222
}
2323
---
24-
25-
<BButton onClick={increase}>++</BButton>
26-
<p>Current counter: {amSession.counter}</p>
24+
<BindForm>
25+
<p>Current counter: {session.counter}</p>
26+
<BButton onClick={increase}>++</BButton>
27+
</BindForm>
2728
```
2829

2930
### Configuration

0 commit comments

Comments
 (0)