{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pagination10",
  "title": "Pagination",
  "description": "Pagination built with shadcn/ui.",
  "dependencies": [
    "lucide-react@0"
  ],
  "registryDependencies": [
    "label",
    "pagination",
    "select"
  ],
  "files": [
    {
      "path": "contents/components/pagination/10/index.tsx",
      "content": "import { ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\";\nimport { useId } from \"react\";\n\nimport { Label } from \"@/components/ui/label\";\nimport {\n  Pagination,\n  PaginationContent,\n  PaginationItem,\n  PaginationLink\n} from \"@/components/ui/pagination\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue\n} from \"@/components/ui/select\";\n\ntype PaginationProps = {\n  currentPage: number;\n  totalPages: number;\n};\n\nexport default function PaginationComponent() {\n  return <PaginationRender currentPage={1} totalPages={10} />;\n}\n\nfunction PaginationRender({ currentPage, totalPages }: PaginationProps) {\n  const id = useId();\n  return (\n    <div className=\"flex items-center w-full justify-between gap-8\">\n      {/* Results per page */}\n      <div className=\"flex items-center gap-3\">\n        <Label htmlFor={id}>Rows per page</Label>\n        <Select defaultValue=\"25\">\n          <SelectTrigger className=\"w-fit whitespace-nowrap\" id={id}>\n            <SelectValue placeholder=\"Select number of results\" />\n          </SelectTrigger>\n          <SelectContent className=\"[&_*[role=option]]:ps-2 [&_*[role=option]]:pe-8 [&_*[role=option]>span]:start-auto [&_*[role=option]>span]:end-2\">\n            <SelectItem value=\"10\">10</SelectItem>\n            <SelectItem value=\"25\">25</SelectItem>\n            <SelectItem value=\"50\">50</SelectItem>\n            <SelectItem value=\"100\">100</SelectItem>\n          </SelectContent>\n        </Select>\n      </div>\n\n      {/* Page number information */}\n      <div className=\"text-muted-foreground flex grow justify-end text-sm whitespace-nowrap\">\n        <p aria-live=\"polite\" className=\"text-muted-foreground text-sm whitespace-nowrap\">\n          <span className=\"text-foreground\">1-25</span> of{\" \"}\n          <span className=\"text-foreground\">100</span>\n        </p>\n      </div>\n\n      {/* Pagination */}\n      <div>\n        <Pagination>\n          <PaginationContent>\n            {/* First page button */}\n            <PaginationItem>\n              <PaginationLink\n                aria-disabled={currentPage === 1 ? true : undefined}\n                aria-label=\"Go to first page\"\n                className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n                href={currentPage === 1 ? undefined : `#/page/${currentPage - 1}`}\n                role={currentPage === 1 ? \"link\" : undefined}>\n                <ChevronFirstIcon aria-hidden=\"true\" size={16} />\n              </PaginationLink>\n            </PaginationItem>\n\n            {/* Previous page button */}\n            <PaginationItem>\n              <PaginationLink\n                aria-disabled={currentPage === 1 ? true : undefined}\n                aria-label=\"Go to previous page\"\n                className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n                href={currentPage === 1 ? undefined : `#/page/${currentPage - 1}`}\n                role={currentPage === 1 ? \"link\" : undefined}>\n                <ChevronLeftIcon aria-hidden=\"true\" size={16} />\n              </PaginationLink>\n            </PaginationItem>\n\n            {/* Next page button */}\n            <PaginationItem>\n              <PaginationLink\n                aria-disabled={currentPage === totalPages ? true : undefined}\n                aria-label=\"Go to next page\"\n                className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n                href={currentPage === totalPages ? undefined : `#/page/${currentPage + 1}`}\n                role={currentPage === totalPages ? \"link\" : undefined}>\n                <ChevronRightIcon aria-hidden=\"true\" size={16} />\n              </PaginationLink>\n            </PaginationItem>\n\n            {/* Last page button */}\n            <PaginationItem>\n              <PaginationLink\n                aria-disabled={currentPage === totalPages ? true : undefined}\n                aria-label=\"Go to last page\"\n                className=\"aria-disabled:pointer-events-none aria-disabled:opacity-50\"\n                href={currentPage === totalPages ? undefined : `#/page/${totalPages}`}\n                role={currentPage === totalPages ? \"link\" : undefined}>\n                <ChevronLastIcon aria-hidden=\"true\" size={16} />\n              </PaginationLink>\n            </PaginationItem>\n          </PaginationContent>\n        </Pagination>\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/pagination10.tsx"
    }
  ],
  "type": "registry:component"
}