Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support for <inertia-link> #15291

Closed
ThaDaVos opened this issue Jun 14, 2022 · 2 comments
Closed

[Feature Request] Support for <inertia-link> #15291

ThaDaVos opened this issue Jun 14, 2022 · 2 comments

Comments

@ThaDaVos
Copy link

Problem to solve

I am using a Laravel Jetstream stack with Vuetify 3 and Vue 3 - sadly when I use the v-btn it reloads the whole webpage instead of using the nicely provided progressbar and acting like a spa. I also noticed in the docs of v-btn that there is no mention of nuxt prop - so I am curious - is it possible to implement this again in Vuetify 3 and also include support for InertiaJs?

This one misses now according to the docs: https://vuetifyjs.com/en/api/v-btn/#props-nuxt

Also see the old issue: #11573

Proposed solution

Re-introduce the props for setting special types of links, or at least introduce a way for the user/developer to make it compatible with whatever link type possible (preferably globally so it only has to be setup once.

Something like one of these two:

  1. <v-btn inertia href="/some/path">Go here</v-btn>
  2. See below:
createVuetify({
  linkResolver: (props, { slots, emit, attrs }) => /** Render function like system to render the correct component */
});

and then just use <v-btn link href="/some/path">Go Here</v-btn>

@martinEtflais
Copy link

Why dont you just wrap the v-btn with Link from Inertia?

@KaelWD
Copy link
Member

KaelWD commented Aug 1, 2022

Duplicate of #11573

@KaelWD KaelWD marked this as a duplicate of #11573 Aug 1, 2022
@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants