mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
29 lines
638 B
Vue
29 lines
638 B
Vue
<script setup lang="ts">
|
|
defineProps<{
|
|
prevIcon?: string
|
|
nextIcon?: string
|
|
}>()
|
|
|
|
const items = [
|
|
'https://picsum.photos/640/640?random=1',
|
|
'https://picsum.photos/640/640?random=2',
|
|
'https://picsum.photos/640/640?random=3',
|
|
'https://picsum.photos/640/640?random=4',
|
|
'https://picsum.photos/640/640?random=5',
|
|
'https://picsum.photos/640/640?random=6'
|
|
]
|
|
</script>
|
|
|
|
<template>
|
|
<UCarousel
|
|
v-slot="{ item }"
|
|
arrows
|
|
:prev-icon="prevIcon"
|
|
:next-icon="nextIcon"
|
|
:items="items"
|
|
class="w-full max-w-xs mx-auto"
|
|
>
|
|
<img :src="item" width="320" height="320" class="rounded-lg">
|
|
</UCarousel>
|
|
</template>
|