You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: src/usage/inertia.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,3 +193,56 @@ bun test
193
193
```
194
194
195
195
:::
196
+
197
+
## Updating the `Link` Component for Inertia
198
+
199
+
To integrate Inertia's navigation capabilities, you need to update the `Link` component in Vue UI to utilize the `Link` component from `@inertiajs/vue3`. This ensures seamless handling of internal links within your Inertia application.
200
+
201
+
### Steps to Update
202
+
203
+
1.**Import the `Link` Component**
204
+
Begin by importing the `Link` component from Inertia:
205
+
206
+
```ts
207
+
import { Link } from'@inertiajs/vue3'
208
+
```
209
+
210
+
2.**Modify the Template**
211
+
Update the `Link` component's template to dynamically use Inertia's `Link` component when the `href` prop is provided:
0 commit comments