25 lines
610 B
Vue
25 lines
610 B
Vue
<script setup>
|
|
import { reactiveOmit } from "@vueuse/core";
|
|
import { PaginationList } from "reka-ui";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const props = defineProps({
|
|
asChild: { type: Boolean, required: false },
|
|
as: { type: null, required: false },
|
|
class: { type: null, required: false },
|
|
});
|
|
|
|
const delegatedProps = reactiveOmit(props, "class");
|
|
</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>
|