I have a component v-popup.vue
<template>
<div class="overlay">
<div class="popup">
<slot></slot>
</div>
</div>
</template>
and I want to style it from the parent, for example:
<template>
<v-popup class="custom-popup">
Popup content
</v-popup>
</template>
<style>
.custom-popup {
padding: 20px;
}
</style>
How can I configure v-popup.vue component to make custom-popup class to be automatically added to div.popup, not div.overlay ?