Fixed scroll component so it uses slot props instead of the depcrecated .
This commit is contained in:
27
assets/components/tooltip/tooltip.vue
Normal file
27
assets/components/tooltip/tooltip.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="tooltip-container">
|
||||
<div class="trigger">
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<div class="tooltip">
|
||||
<div class="tooltip-wrapper">
|
||||
<slot name="popover" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.tooltip-container {
|
||||
position: relative;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
top: 2rem;
|
||||
background: var(--background);
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user