mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
25 lines
631 B
Vue
25 lines
631 B
Vue
<script setup lang="ts">
|
|
import { cn } from '@/lib/utils'
|
|
import { PaginationList, type PaginationListProps } from 'reka-ui'
|
|
import { computed, type HTMLAttributes } from 'vue'
|
|
|
|
const props = defineProps<PaginationListProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props
|
|
|
|
return delegated
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<PaginationList
|
|
v-slot="slotProps"
|
|
data-slot="pagination-content"
|
|
v-bind="delegatedProps"
|
|
:class="cn('flex flex-row items-center gap-1', props.class)"
|
|
>
|
|
<slot v-bind="slotProps" />
|
|
</PaginationList>
|
|
</template>
|