[Feature Request] Add supoort for <inertia-link> component
See original GitHub issueProblem to solve
I’m using Inertia.js with Laravel after a lot of frustration with Nuxt. Inertia do it’s navigation magic with the <inertia-link>
component. It’s something linke <nuxt-link>
. It would be nice to have support for this on <v-btn>
, <v-chip>
just like we have for nuxt.
Proposed solution
It could be something as simple as: <v-btn inertia to="route">
. The same deal going on with <v-btn nuxt to="route>
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:13 (1 by maintainers)
Top Results From Across the Web
InertiaJs Link Component - DEV Community
In this Tutorial, we will create a Vue Component which will be responsible for the design and display of all the InertiaJs Links...
Read more >Links - Inertia.js
To create links within an Inertia app you'll need to use the Inertia link component. This is a light wrapper around a standard...
Read more >The Ultimate Guide to Inertia.js - Kinsta
A look at how Inertia.js makes constructing single-page applications a piece of cake, while solving other problems for developers.
Read more >Inertia.js Support - IntelliJ IDEA & PhpStorm Plugin | Marketplace
Provides support in PhpStorm and IntelliJ IDEA Ultimate for Inertia.js. GitHub Issues: feature requests and bug reports.
Read more >Laravel Inertia: Installation Tutorial and Tips & Tricks
This is done using the <Link> component. When a user clicks an 'inertia link,' Inertia intercepts it and makes an AJAX request to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Stumbled across this and wanted to an answer as well. I found that the
inertia-link
component has theas
property which accepts any DOM element or vue component. Additionally, the props passed to theinertia-link
component are passed to the rendered component implementation when usingas
so you’re able to leverage the standard Vuetify v-btn properties on it as well and it all works great.<inertia-link as="v-btn" href="/" color="secondary" block small> Link </inertia-link>
In my case I was not using vue router in the project, so I registered the
inertia-link
globally asrouter-link
.