Rental/components/MainCarusel.vue
alsaze f35f562add
All checks were successful
Deploy / build (push) Successful in 47s
init
2025-12-01 15:20:48 +03:00

41 lines
716 B
Vue

<template>
<div id="variations">
<UCarousel
v-slot="{ item }"
arrows
:items="items"
:ui="{ item: 'basis-1/2 sm:basis-1/3 md:basis-1/4 lg:basis-1/5 xl:basis-1/6' }"
class="w-full variant"
>
<img
:src="item.img"
alt="item.img"
class="rounded-lg w-full h-auto object-cover"
>
</UCarousel>
</div>
</template>
<script setup lang="ts">
const items = [
{
id: 1,
img: 'https://picsum.photos/468/468?random=1',
},
{
id: 2,
img: 'https://picsum.photos/468/468?random=2',
},
{
id: 3,
img: 'https://picsum.photos/468/468?random=3',
},
]
</script>
<style lang="scss">
.variant {
cursor: pointer;
}
</style>