Seeking to achieve: VueJS integration with Bootstrap for clickable cards
I am currently working on a VueJS project where I want the cards to be clickable and reveal collapsible elements upon click. To accomplish this, I have implemented a button with the "stretched-link" class that activates the collapse feature when clicked.
<b-card
v-bind:img-src="`https://via.placeholder.com/200`"
img-alt="Image"
img-top
tag="article"
style="max-width: 20rem;"
class="mb-2">
<b-button v-b-toggle="'collapse-' + unique-identifier" variant="primary" class="stretched-link">Toggle</b-button>
<b-collapse v-bind:id="'collapse-' + unique-identifier" class="mt-2">
<b-card>This is the collapsed content</b-card>
</b-collapse>
</b-card>
I have attempted to hide the button within the card by using classes like "d-none" and "invisible" (
class="stretched-link d-none"
and class="stretched-link invisible"
), but it also hides the stretched link area. Is there a way to keep the activated link area while concealing the button icon?