Within my single page application, I utilize a v-card
containing a v-card-title
.
The content within the v-card-text
consists of various components/text as well as a close button that requires complex logic and properties.
I am interested in creating a custom component (such as my-card-text
) that automatically incorporates the common elements and buttons that remain consistent.
My goal is to be able to write something like:
<v-card>
<my-card-text>
<something/>
<a>a link</a>
<v-btn>OK</v-btn>
</my-card-text>
</v-card>
Is it feasible to include code within a custom component?