Newer
Older
<script setup lang="ts">
defineProps<{
disable?: boolean;
textColor: string;
color: string;

Дмитрий Малюгин
committed
<div
:class="[
'arrowContainer',
{
disable,
},
]"
>

Дмитрий Малюгин
committed
'bg',

Дмитрий Малюгин
committed
disableBg: disable,

Дмитрий Малюгин
committed
></div>
<div class="icon">
<slot />
</div>
</div>
</template>
<style scoped>
.arrowContainer {

Дмитрий Малюгин
committed
position: relative;
display: flex;
justify-content: center;
align-items: center;

Дмитрий Малюгин
committed
cursor: pointer;
background-color: v-bind(color);
border-radius: v-bind(borderRadius);
}
.icon {
display: flex;
justify-content: center;
align-items: center;
line-height: 1.2;
color: v-bind(textColor);
}

Дмитрий Малюгин
committed
.arrowContainer:hover > .bg {

Дмитрий Малюгин
committed
.arrowContainer:active > .bg {
opacity: 0.2;
}
.bg {
width: 100%;
height: 100%;
position: absolute;
opacity: 0;
border-radius: v-bind(borderRadius);
background-color: black;