mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-05 22:36:05 +02:00
35 lines
1.1 KiB
Vue
35 lines
1.1 KiB
Vue
<script setup>
|
|
import { PaginationNext, useForwardProps } from 'reka-ui';
|
|
import { ChevronRightIcon } from 'lucide-vue-next';
|
|
import { buttonVariants } from '@/components/ui/button';
|
|
import { cn } from '@/lib/utils';
|
|
import { reactiveOmit } from '@vueuse/core';
|
|
import { useI18n } from 'vue-i18n';
|
|
|
|
const props = defineProps({
|
|
asChild: { type: Boolean, required: false },
|
|
as: { type: null, required: false },
|
|
size: { type: null, required: false, default: 'default' },
|
|
class: { type: null, required: false }
|
|
});
|
|
|
|
const { t } = useI18n();
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class', 'size');
|
|
const forwarded = useForwardProps(delegatedProps);
|
|
</script>
|
|
|
|
<template>
|
|
<PaginationNext
|
|
data-slot="pagination-next"
|
|
:class="cn(buttonVariants({ variant: 'ghost', size }), 'text-[13px] gap-1 px-2.5 sm:pr-2.5', props.class)"
|
|
v-bind="forwarded">
|
|
<slot>
|
|
<span class="hidden sm:block">
|
|
{{ t('table.pagination.next') }}
|
|
</span>
|
|
<ChevronRightIcon />
|
|
</slot>
|
|
</PaginationNext>
|
|
</template>
|