I have a single-file component, SitesCard, which is just a custom v-card:
<template>
<v-card>
// ...
</v-card>
</template>
v-card is a Vuetify component which accepts a boolean loading prop. See the Vuetify card docs.
When I use this SitesCard component, I'd like to be able to be able to set the loading boolean prop directly on the SitesCard, which I've tried doing in these ways:
<SitesCard :loading="true" />
// OR
<SitesCard v-bind:loading="true">
I feel like this should be possible because <v-card> is the root element of SitesCard, so Vue/Vuetify should know to apply that prop to the <v-card>. But it doesn't seem to work that way. The loading indicator only appears if I set the <v-card>'s loading prop from within the SitesCard SFC.
I have a large number of custom SFC <v-card>s for which I'd like to control the loading state via their parent component.
Is there a way to have Vue apply built-in Vuetify props like loading to the root element of an SFC like this? Or do I have to manually pass in my own loading prop and then set the <v-card>'s loading from within the SFC?