Vue Router support for v-toolbar-title
See original GitHub issueThe majority of websites allow the user to click on the website title / logo to navigate to the homepage.
I tried to implement this with Vuetify but <v-toolbar-title>
doesn’t seem to support the Vue Router
attribute to="<path>"
as other components do.
I’ve noticed that the Vuetify website also implements this behavior, however, its only possible to click the logo.
An example Codepen of this
I’ve tried nesting another component in v-toolbar-title
which can hold a to
attribute but that causes the title to loose its CSS properties.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:11 (3 by maintainers)
Top Results From Across the Web
How to run Vuetify.js toolbar title with router - Stack Overflow
Here is how I solved it. I followed a mix of vuetify and vue-router official documentation. <v-toolbar-title style="cursor: pointer"> ...
Read more >Rolling your own management application with Vue, Vue ...
In this tutorial, we will work with Vue, Vue Router, Vuetify, and node-fetch to build the front end of an inventory management application....
Read more >How to build an SPA using Vue.js, Vuex, Vuetify, and Firebase
How to build an SPA using Vue.js, Vuex, Vuetify, and Firebase: using Vue Router. Part 2: learn how to use Vue Router with...
Read more >Get started with Vuetify 3
Get started with Vuetify, the world's most popular Vue.js framework for building ... For more information regarding supported package managers, please visit ...
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 FreeTop 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
Top GitHub Comments
Johns solution is awesome just add
toolbar-title
as the class for the router-link and the following cssas it seems the classname has changed to
I do have to apply the color and the text-decoration explicitly though. ‘Inherit’ will keep the blueish-link-color of the router-link
Maybe this could be more elegantly solved within the framework by offering a “:to” on the v-toolbar-title as suggested by the original poster?