I've implemented a navbar component in my web app using the v-app-bar Vuetify component. However, I'm facing an issue where I need to dynamically set the props of the v-app-bar based on the current page the user is viewing.
<v-app-bar
absolute
color="#43a047"
dark
shrink-on-scroll
prominent
src="https://picsum.photos/1920/1080?random"
fade-img-on-scroll
scroll-target="#scrolling-techniques-5"
scroll-threshold="500"
>
For example, the code snippet above showcases a standard v-app-bar component with props that allow for an image background which fades and shrinks as the user scrolls down. This design is specifically intended for the landing page. I'd like to have a unique style for the navbar when users navigate to other pages on the site. While I've experimented with creating separate navbar components or using v-if statements within the component to handle this, it has led to code duplication and inefficiency. Given that I am working on a large-scale website with diverse user accounts, it would be much more convenient if I could dynamically adjust the Vuetify props of the v-app-bar based on the specific page being viewed rather than creating multiple variations of the navbar component.