shadcn-vue/apps/www/src/lib/registry/default/ui/pagination/PaginationNext.vue
sadeghbarati 0c84b084e4 feat: add pagination
feat: update
2023-10-10 10:05:19 +03:30

23 lines
573 B
Vue

<script setup lang="ts">
import { PaginationNext, type PaginationNextProps, useForwardProps } from 'radix-vue'
import { ChevronRight } from 'lucide-vue-next'
import {
Button,
} from '@/lib/registry/default/ui/button'
const props = withDefaults(defineProps<PaginationNextProps>(), {
asChild: true,
})
const forwarded = useForwardProps(props)
</script>
<template>
<PaginationNext v-bind="forwarded">
<Button class="w-10 h-10 p-0" variant="outline">
<slot>
<ChevronRight class="h-4 w-4" />
</slot>
</Button>
</PaginationNext>
</template>