In my Vuetify project, I'm utilizing the built-in color parameter and predefined colors. My goal is to dynamically change the component's color based on the data it receives. For example, if complete: true,
then the color should be green.
Here's an example of what I have in mind:
<component :color="'deep-purple accent-4' if item.complete else 'grey'" v-for="n in items"></component>
The above code snippet is a rough representation of my idea, not actual working code. While I am aware that I could create custom classes and use conditional class methods, I prefer to utilize the existing Vuetify features if possible.