pagination

Pagination with page info on center

Pagination with page info on center

Загрузка превью…

src/pagination/c-pagination-8.vue

<!--
  Расхождение с апстримом: `IconPlaceholder` заменена инлайновым `<svg>`
  (lucide-react v0.545.0 "chevron-left"/"chevron-right") — см. docs/PORTING.md §5.
-->
<script setup lang="ts">
import { Pagination, PaginationContent, PaginationItem, PaginationLink } from "@/components/ui/pagination"
</script>

<template>
  <Pagination class="w-full max-w-xs">
    <PaginationContent class="w-full justify-between">
      <PaginationItem>
        <PaginationLink href="#" size="icon" aria-label="Go to previous page">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="lucide lucide-chevron-left size-4">
            <path d="m15 18-6-6 6-6" />
          </svg>
        </PaginationLink>
      </PaginationItem>
      <PaginationItem>
        <span class="text-muted-foreground text-xs">
          Page <span class="text-foreground font-medium">1</span> of <span class="text-foreground font-medium">10</span>
        </span>
      </PaginationItem>
      <PaginationItem>
        <PaginationLink href="#" size="icon" aria-label="Go to next page">
          <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="lucide lucide-chevron-right size-4">
            <path d="m9 18 6-6-6-6" />
          </svg>
        </PaginationLink>
      </PaginationItem>
    </PaginationContent>
  </Pagination>
</template>

Установка

npx shadcn-vue@latest add https://revueui.rootapi.dev/r/c-pagination-8.json

Зависимости реестра

Источник: порт из ReUI (Keenthemes, MIT)