Files
Mike Newbon effbb18bfe feat(ScrollArea): new component (#5245)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
2025-12-16 11:47:24 +01:00

22 lines
434 B
Vue

<script setup lang="ts">
const items = Array.from({ length: 30 }, (_, i) => ({
id: i + 1,
title: `Item ${i + 1}`,
description: `Description for item ${i + 1}`
}))
</script>
<template>
<UScrollArea
v-slot="{ item, index }"
:items="items"
class="w-full h-96"
>
<UPageCard
v-bind="item"
:variant="index % 2 === 0 ? 'soft' : 'outline'"
class="rounded-none"
/>
</UScrollArea>
</template>