Skip to content

Commit b1b8a4d

Browse files
authored
Docs: fix Svelte tabs names (#270)
1 parent 4402a56 commit b1b8a4d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/guide/forms.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default () => (
4848

4949
Just like a traditional HTML form, there is no need to attach an `onChange` handler to your input fields, just give each input a `name` attribute and a `defaultValue` (if applicable) and the `Form` component will handle the data submission for you.
5050

51-
== Svelte 4 | Svelte 5
51+
== Svelte 4| Svelte 5
5252

5353
```svelte
5454
<script>
@@ -62,7 +62,7 @@ Just like a traditional HTML form, there is no need to attach an `onChange` hand
6262
</Form>
6363
```
6464

65-
Just like a traditional HTML form, there is no need to attach a `bind:` to your input fields, just give each input a `name` attribute and the `Form` component will handle the data submission for you.
65+
Just like a traditional HTML form, there is no need to attach a `bind:` to your input fields, just give each input a `name` attribute and a `defaultValue` (if applicable, available since Svelte `5.6.0`) and the `Form` component will handle the data submission for you.
6666

6767
:::
6868

@@ -94,7 +94,7 @@ The component also supports advanced use cases, including nested data structures
9494
</Form>
9595
```
9696

97-
== Svelte 4 | Svelte 5
97+
== Svelte 4| Svelte 5
9898

9999
```svelte
100100
<Form action="/reports" method="post">
@@ -138,7 +138,7 @@ You can pass a `transform` prop to modify the form data before submission. This
138138
</Form>
139139
```
140140

141-
== Svelte 4 | Svelte 5
141+
== Svelte 4| Svelte 5
142142

143143
```svelte
144144
<Form
@@ -433,7 +433,7 @@ Some props are intentionally grouped under `options` instead of being top-level
433433

434434
When setting the `disableWhileProcessing` prop, the `Form` component will add the `inert` attribute to the HTML `form` tag while the form is processing to prevent user interaction.
435435

436-
== Svelte 4 | Svelte 5
436+
== Svelte 4| Svelte 5
437437

438438
```svelte
439439
<Form
@@ -629,7 +629,7 @@ To reset the form after a successful submission:
629629
</Form>
630630
```
631631

632-
== Svelte 4 | Svelte 5
632+
== Svelte 4| Svelte 5
633633

634634
```svelte
635635
<!-- Reset the entire form on success -->
@@ -689,7 +689,7 @@ To reset the form after errors:
689689
</Form>
690690
```
691691

692-
== Svelte 4 | Svelte 5
692+
== Svelte 4| Svelte 5
693693

694694
```svelte
695695
<!-- Reset the entire form on success -->
@@ -737,7 +737,7 @@ The `Form` component provides the `setDefaultsOnSuccess` attribute to set the cu
737737
</Form>
738738
```
739739

740-
== Svelte 4 | Svelte 5
740+
== Svelte 4| Svelte 5
741741

742742
```svelte
743743
<Form action="/users" method="post" setDefaultsOnSuccess>
@@ -777,7 +777,7 @@ The `<Form>` component supports dotted key notation for creating nested objects
777777
</Form>
778778
```
779779

780-
== Svelte 4 | Svelte 5
780+
== Svelte 4| Svelte 5
781781

782782
```svelte
783783
<Form action="/users" method="post">
@@ -828,7 +828,7 @@ If you need literal dots in your field names (not as nested object separators),
828828
</Form>
829829
```
830830

831-
== Svelte 4 | Svelte 5
831+
== Svelte 4| Svelte 5
832832

833833
```svelte
834834
<Form action="/config" method="post">
@@ -907,7 +907,7 @@ export default function CreateUser() {
907907
}
908908
```
909909

910-
== Svelte 4 | Svelte 5
910+
== Svelte 4| Svelte 5
911911

912912
```svelte
913913
<script>

docs/guide/prefetching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ import { Link } from '@inertiajs/react'
326326
<Link href="/dashboard" prefetch cacheTags={['dashboard', 'stats']}>Dashboard</Link>
327327
```
328328

329-
== Svelte 4 | Svelte 5
329+
== Svelte 4| Svelte 5
330330

331331
```svelte
332332
import {inertia} from '@inertiajs/svelte'
@@ -421,7 +421,7 @@ export default () => (
421421
)
422422
```
423423

424-
== Svelte 4 | Svelte 5
424+
== Svelte 4| Svelte 5
425425

426426
```svelte
427427
<script>
@@ -471,7 +471,7 @@ function submit(e) {
471471
}
472472
```
473473

474-
== Svelte 4 | Svelte 5
474+
== Svelte 4| Svelte 5
475475

476476
```svelte
477477
import { useForm } from '@inertiajs/svelte'

0 commit comments

Comments
 (0)