Skip to content

Conversation

innocenzi
Copy link

@innocenzi innocenzi commented Oct 12, 2025

πŸ”— Linked issue

Supersedes #4763
Closes #4233
Related to #4341

❓ Type of change

  • πŸ‘Œ Enhancement (improving an existing functionality)

πŸ“š Description

This pull request is a follow-up to #4763, intended for v4.

This is an attempt at allowing the use of Nuxt UI in frameworks that don't require vue-router. This is the case in Inertia applications (even if Inertia currently has its own exception built in Nuxt UI), in Hybridly applications, in SPAs without routing, etc.

I took the same approach as the Inertia override: if the new router option is set to false, it will load stubs without vue-router.

Note that I also deprecated the previous inertia option, in favor of router: 'inertia'. This felt like the proper thing to do, but I kept the inertia option working.

I tested this PR in a fresh Hybridly app, and it works well, except for the links (obviously) which use anchor tags in those apps.

This is an acceptable workaround for now, but I think Nuxt UI should allow for userland override of components, instead of offering framework-specific componentsβ€”because there are other frameworks that might have dedicated link components (eg. we plan to have that at Tempest).

If this is not the route you want to go and you prefer maintaining those frameworks' link components, I will follow-up this PR for a Hybridly one.


cc @benjamincanac as stated in the previous PR, I wasn't sure what was wrong with this approach, so a review from you would be welcome

Copy link

pkg-pr-new bot commented Oct 12, 2025

npm i https://pkg.pr.new/@nuxt/ui@5213

commit: 2a68edc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nuxt UI (vue) without vue-router

1 participant