shadcn-vue/apps/www/registry/new-york/ui/pagination/PaginationEllipsis.vue
2024-11-21 11:52:31 +08:00

23 lines
664 B
Vue

<script setup lang="ts">
import { cn } from '@/lib/utils'
import { DotsHorizontalIcon } from '@radix-icons/vue'
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 v-bind="delegatedProps" :class="cn('w-9 h-9 flex items-center justify-center', props.class)">
<slot>
<DotsHorizontalIcon />
</slot>
</PaginationEllipsis>
</template>