mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
chore(playground): compodium setup
This commit is contained in:
23
playground/compodium/examples/UCarousel/UCarouselExample.vue
Normal file
23
playground/compodium/examples/UCarousel/UCarouselExample.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
extendCompodiumMeta({
|
||||
defaultProps: {
|
||||
items: [
|
||||
'https://picsum.photos/320/320?v=1',
|
||||
'https://picsum.photos/320/320?v=2',
|
||||
'https://picsum.photos/320/320?v=3'
|
||||
]
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UCarousel
|
||||
v-slot="{ item }"
|
||||
class="w-xs h-xs"
|
||||
>
|
||||
<img
|
||||
:src="item"
|
||||
class="rounded-lg"
|
||||
>
|
||||
</UCarousel>
|
||||
</template>
|
||||
Reference in New Issue
Block a user