mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
28 lines
762 B
Vue
28 lines
762 B
Vue
<script setup lang="ts">
|
|
import { cn } from '@/lib/utils'
|
|
import { MoreHorizontal } from 'lucide-vue-next'
|
|
import { PaginationEllipsis, type PaginationEllipsisProps } from 'reka-ui'
|
|
import { computed, type HTMLAttributes } from 'vue'
|
|
|
|
const props = defineProps<PaginationEllipsisProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = computed(() => {
|
|
const { class: _, ...delegated } = props
|
|
|
|
return delegated
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<PaginationEllipsis
|
|
data-slot="pagination-ellipsis"
|
|
v-bind="delegatedProps"
|
|
:class="cn('flex size-9 items-center justify-center', props.class)"
|
|
>
|
|
<slot>
|
|
<MoreHorizontal class="size-4" />
|
|
<span class="sr-only">More pages</span>
|
|
</slot>
|
|
</PaginationEllipsis>
|
|
</template>
|