{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pagination",
  "title": "Pagination",
  "description": "Outline, soft, ghost, pill, neo, minimal and carousel-dot pagination with a sliding active marker or press feedback, tones, sizes and shapes, plus first/last, range info, page-size select and jump-to-page.",
  "dependencies": [
    "motion"
  ],
  "registryDependencies": [
    "https://goodui.dev/r/goodui-motion.json",
    "https://goodui.dev/r/locale.json"
  ],
  "files": [
    {
      "path": "registry/components/core/pagination.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { motion, useReducedMotion } from \"motion/react\"\nimport { cn } from \"@/lib/utils\"\nimport { useLabels } from \"@/lib/goodui-locale\"\nimport { GooduiTokens, spring } from \"@/lib/goodui-motion\"\n\n/*\n * Pagination with independent layers:\n *   variant    outline, soft, ghost, pill (pages sit in a track), neo, minimal (\"Page 3 of 12\"), dots (carousels)\n *   animation  none, slide (the active marker glides between pages), press\n *   tone, size, shape (rounded, circle, square)\n *   extras     first/last buttons, prev/next labels, range info, page-size select, jump-to input\n * Controlled (`page` + `onPageChange`) or uncontrolled (`defaultPage`).\n */\n\nexport type PaginationVariant = \"outline\" | \"soft\" | \"ghost\" | \"pill\" | \"neo\" | \"minimal\" | \"dots\"\nexport type PaginationTone = \"primary\" | \"neutral\" | \"success\" | \"warning\" | \"danger\" | \"info\"\nexport type PaginationAnimation = \"none\" | \"slide\" | \"press\"\nexport type PaginationSize = \"sm\" | \"md\" | \"lg\"\nexport type PaginationShape = \"rounded\" | \"circle\" | \"square\"\n\nexport type PaginationLabels = {\n  previous: string\n  next: string\n  firstPage: string\n  previousPage: string\n  nextPage: string\n  lastPage: string\n  previousSlide: string\n  nextSlide: string\n  /** Name of a numbered page button. */\n  goToPage: (page: number) => string\n  goToSlide: (slide: number, total: number) => string\n  skipBack: (pages: number) => string\n  skipForward: (pages: number) => string\n  /** Range info with totalItems: \"21–30 of 248\". */\n  range: (from: number, to: number, total: number) => string\n  /** \"Page 3 of 12\". `page` is a node: the minimal variant puts the styled number or the jump field there. */\n  pageOf: (page: React.ReactNode, total: number) => React.ReactNode\n  rows: string\n  goTo: string\n  /** Name of the jump-to input. */\n  pageField: string\n  pagePlaceholder: string\n}\n\nconst DEFAULT_LABELS: PaginationLabels = {\n  previous: \"Previous\",\n  next: \"Next\",\n  firstPage: \"First page\",\n  previousPage: \"Previous page\",\n  nextPage: \"Next page\",\n  lastPage: \"Last page\",\n  previousSlide: \"Previous slide\",\n  nextSlide: \"Next slide\",\n  goToPage: (page) => `Page ${page}`,\n  goToSlide: (slide, total) => `Slide ${slide} of ${total}`,\n  skipBack: (pages) => `Back ${pages} pages`,\n  skipForward: (pages) => `Forward ${pages} pages`,\n  range: (from, to, total) => `${from}–${to} of ${total.toLocaleString()}`,\n  pageOf: (page, total) => (\n    <>\n      Page {page} of {total}\n    </>\n  ),\n  rows: \"Rows\",\n  goTo: \"Go to\",\n  pageField: \"Go to page\",\n  pagePlaceholder: \"Page\",\n}\n\nexport type PaginationProps = Omit<React.ComponentProps<\"nav\">, \"onChange\"> & {\n  /** Current page, 1-based (controlled). Clamped to 1…total. */\n  page?: number\n  /** Initial page when uncontrolled. */\n  defaultPage?: number\n  /** Called with the new 1-based page. */\n  onPageChange?: (page: number) => void\n  /** Number of pages. Ignored when `totalItems` is set. */\n  totalPages?: number\n  /** Total rows; with `pageSize` it sets the page count and the \"21–30 of 248\" info. */\n  totalItems?: number\n  /** Rows per page (controlled). */\n  pageSize?: number\n  /** Initial rows per page when uncontrolled. */\n  defaultPageSize?: number\n  /** Called when the rows select changes; the page is adjusted to keep the first visible row. */\n  onPageSizeChange?: (size: number) => void\n  /** Choices in the rows-per-page select. */\n  pageSizeOptions?: number[]\n  /** Pages shown on each side of the current one. */\n  siblings?: number\n  /** Pages always shown at the start and end. */\n  boundaries?: number\n  /** outline (default), soft, ghost, pill (pages in a track), neo, minimal (\"Page 3 of 12\") or dots (carousels). */\n  variant?: PaginationVariant\n  /** Color of the active page marker and focus rings. */\n  tone?: PaginationTone\n  /** slide glides the active marker between pages; press shrinks buttons while pressed. */\n  animation?: PaginationAnimation\n  size?: PaginationSize\n  /** Button corners. The pill variant is always round. */\n  shape?: PaginationShape\n  /** Adds first-page and last-page buttons. */\n  showFirstLast?: boolean\n  /** Shows the previous and next arrows. */\n  showPrevNext?: boolean\n  /** \"Previous\"/\"Next\" text next to the arrows (hidden on phones). */\n  showLabels?: boolean\n  /** \"21–30 of 248\" (with totalItems) or \"Page 3 of 12\". */\n  showInfo?: boolean\n  /** Adds a rows-per-page select. */\n  showPageSize?: boolean\n  /** A \"Go to\" input. In the minimal variant the page number itself becomes editable. */\n  showJump?: boolean\n  /** Text for built-in controls and screen readers; pass translations here. */\n  labels?: Partial<PaginationLabels>\n}\n\nconst tones = (c: string) => `\n.${c}{--pc-c:var(--primary);--pc-fg:var(--primary-foreground)}\n.${c}[data-tone=neutral]{--pc-c:var(--foreground);--pc-fg:var(--background)}\n.${c}[data-tone=success]{--pc-c:oklch(0.53 0.13 155);--pc-fg:#fff}\n.${c}[data-tone=warning]{--pc-c:oklch(0.75 0.16 70);--pc-fg:oklch(0.25 0.05 70)}\n.${c}[data-tone=danger]{--pc-c:oklch(0.56 0.21 27);--pc-fg:#fff}\n.${c}[data-tone=info]{--pc-c:oklch(0.55 0.17 250);--pc-fg:#fff}\n.dark .${c}[data-tone=success]{--pc-c:oklch(0.7 0.16 155);--pc-fg:oklch(0.2 0.05 155)}\n.dark .${c}[data-tone=danger]{--pc-c:oklch(0.68 0.2 25);--pc-fg:oklch(0.2 0.05 25)}\n.dark .${c}[data-tone=info]{--pc-c:oklch(0.7 0.15 245);--pc-fg:oklch(0.2 0.05 245)}\n.${c}{--pc-tint:color-mix(in oklab,var(--pc-c) 14%,transparent);--pc-ink:color-mix(in oklab,var(--pc-c) 82%,var(--foreground))}\n.${c}[data-tone=warning]{--pc-ink:color-mix(in oklab,var(--pc-c) 62%,var(--foreground))}\n`\n\nconst P = \".pc-pagination\"\nconst B = \".pc-pagination-btn\"\nconst A = `${B}[aria-current=page]`\nconst CSS = `${tones(\"pc-pagination\")}\n${B}{color:var(--foreground);-webkit-tap-highlight-color:transparent}\n${B}:disabled{color:var(--muted-foreground)}\n${B}:not(:disabled):not([aria-current=page]):hover{background:color-mix(in oklab,var(--foreground) 6%,transparent)}\n${P} .pc-pagination-ind{position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:var(--pc-c)}\n${A}{color:var(--pc-fg);font-weight:600}\n\n${P}[data-variant=outline] ${B}{border:1px solid var(--border);background:var(--background)}\n${P}[data-variant=outline] ${A}{border-color:var(--pc-c)}\n${P}[data-variant=outline] .pc-pagination-ind{inset:-1px}\n\n${P}[data-variant=soft] .pc-pagination-ind{background:var(--pc-tint)}\n${P}[data-variant=soft] ${A}{color:var(--pc-ink)}\n\n${P}[data-variant=ghost] .pc-pagination-ind{inset:auto 22% 2px;height:2px;border-radius:2px}\n${P}[data-variant=ghost] ${A}{color:var(--pc-ink)}\n\n${P}[data-variant=pill] .pc-pagination-track{background:color-mix(in oklab,var(--foreground) 6%,transparent)}\n${P}[data-variant=pill] .pc-pagination-ind{box-shadow:0 1px 3px rgb(0 0 0/.18)}\n\n${P}[data-variant=neo] ${B}{border:2px solid var(--foreground);background:var(--background);box-shadow:2px 2px 0 var(--foreground)}\n${P}[data-variant=neo] ${B}:not(:disabled):not([aria-current=page]):hover{background:var(--pc-tint);transform:translate(-1px,-1px);box-shadow:3px 3px 0 var(--foreground)}\n${P}[data-variant=neo] ${A}{transform:translate(2px,2px);box-shadow:0 0 0 var(--foreground)}\n${P}[data-variant=neo] ${B}:disabled{opacity:.45}\n\n${P}[data-variant=minimal] ${B}{border:1px solid var(--border);background:var(--background)}\n\n${P}[data-variant=dots] .pc-pagination-dot{background:color-mix(in oklab,var(--foreground) 22%,transparent)}\n${P}[data-variant=dots] .pc-pagination-dotbtn:hover .pc-pagination-dot{background:color-mix(in oklab,var(--foreground) 40%,transparent)}\n${P}[data-variant=dots] .pc-pagination-ind{inset:auto;left:0;right:0;top:50%;height:8px;margin-top:-4px;border-radius:99px}\n\n${P}[data-anim]:not([data-anim=none]) ${B}{transition:background-color .15s,color .15s,border-color .15s,transform .12s,box-shadow .12s}\n${P}[data-anim=press] ${B}:not(:disabled):active{transform:scale(.9)}\n${P}[data-anim=press][data-variant=neo] ${B}:not(:disabled):active{transform:translate(2px,2px);box-shadow:0 0 0 var(--foreground)}\n${P}[data-anim]:not([data-anim=none]) .pc-pagination-dot{transition:transform .25s,background-color .2s}\n.pc-pagination-more{color:color-mix(in oklab,var(--muted-foreground) 80%,var(--foreground))}\n.pc-pagination-more .pc-pagination-more-icon{display:none}\n.pc-pagination-more:hover .pc-pagination-more-icon,.pc-pagination-more:focus-visible .pc-pagination-more-icon{display:block}\n.pc-pagination-more:hover .pc-pagination-more-dots,.pc-pagination-more:focus-visible .pc-pagination-more-dots{display:none}\n.pc-pagination-field{border:1px solid var(--border);background:var(--background);color:var(--foreground)}\n.pc-pagination-field:focus-visible{outline:none;border-color:var(--pc-c);box-shadow:0 0 0 3px color-mix(in oklab,var(--pc-c) 30%,transparent)}\n.pc-pagination-field::-webkit-inner-spin-button{display:none}\n.pc-pagination-field{-moz-appearance:textfield}\n@media (prefers-reduced-motion:reduce){\n  ${P} *{transition:none!important}\n  ${P}[data-anim] ${B}:active{transform:none!important}\n}\n`\n\nconst SIZE: Record<PaginationSize, { btn: string; text: string; icon: string; field: string }> = {\n  sm: { btn: \"h-8 min-w-8 px-2\", text: \"text-xs\", icon: \"[&_svg]:size-3.5\", field: \"h-8 text-xs\" },\n  md: { btn: \"h-9 min-w-9 px-2.5\", text: \"text-sm\", icon: \"[&_svg]:size-4\", field: \"h-9 text-sm\" },\n  lg: { btn: \"h-10 min-w-10 px-3\", text: \"text-[15px]\", icon: \"[&_svg]:size-[18px]\", field: \"h-10 text-sm\" },\n}\nconst SHAPE: Record<PaginationShape, string> = { rounded: \"rounded-md\", circle: \"rounded-full\", square: \"rounded-none\" }\n\n/** Page list with ellipses that keeps a constant length, so the control never jumps around. */\nexport function paginationRange(page: number, total: number, siblings = 1, boundaries = 1): (number | \"start-ellipsis\" | \"end-ellipsis\")[] {\n  const range = (a: number, b: number) => Array.from({ length: Math.max(0, b - a + 1) }, (_, i) => a + i)\n  if (total <= 2 * boundaries + 2 * siblings + 3) return range(1, total)\n  const startPages = range(1, Math.min(boundaries, total))\n  const endPages = range(Math.max(total - boundaries + 1, boundaries + 1), total)\n  const sStart = Math.max(Math.min(page - siblings, total - boundaries - siblings * 2 - 1), boundaries + 2)\n  const sEnd = Math.min(Math.max(page + siblings, boundaries + siblings * 2 + 2), endPages[0] !== undefined ? endPages[0] - 2 : total - 1)\n  return [\n    ...startPages,\n    ...(sStart > boundaries + 2 ? [\"start-ellipsis\" as const] : boundaries + 1 < total - boundaries ? [boundaries + 1] : []),\n    ...range(sStart, sEnd),\n    ...(sEnd < total - boundaries - 1 ? [\"end-ellipsis\" as const] : total - boundaries > boundaries ? [total - boundaries] : []),\n    ...endPages,\n  ]\n}\n\nconst Icon = ({ d }: { d: string }) => (\n  <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\" className=\"rtl:-scale-x-100\">\n    <path d={d} />\n  </svg>\n)\nconst PREV = \"m15 18-6-6 6-6\"\nconst NEXT = \"m9 18 6-6-6-6\"\nconst FIRST = \"m11 17-5-5 5-5M18 17l-5-5 5-5\"\nconst LAST = \"m6 17 5-5-5-5M13 17l5-5-5-5\"\n\nexport function Pagination({\n  page: pageProp,\n  defaultPage = 1,\n  onPageChange,\n  totalPages: totalPagesProp = 1,\n  totalItems,\n  pageSize: pageSizeProp,\n  defaultPageSize = 10,\n  onPageSizeChange,\n  pageSizeOptions = [10, 25, 50, 100],\n  siblings = 1,\n  boundaries = 1,\n  variant = \"outline\",\n  tone = \"primary\",\n  animation = \"slide\",\n  size = \"md\",\n  shape = \"rounded\",\n  showFirstLast = false,\n  showPrevNext = true,\n  showLabels = false,\n  showInfo = false,\n  showPageSize = false,\n  showJump = false,\n  className,\n  \"aria-label\": ariaLabel = \"Pagination\",\n  labels,\n  ...props\n}: PaginationProps) {\n  const l = useLabels(\"pagination\", DEFAULT_LABELS, labels)\n  const uid = React.useId()\n  const prefersReduced = useReducedMotion()\n  // Reduced motion picks motion.span vs span and data-anim, so wait for mount to match the server render.\n  const [mounted, setMounted] = React.useState(false)\n  React.useEffect(() => setMounted(true), [])\n  const reduce = mounted && !!prefersReduced\n  const [innerSize, setInnerSize] = React.useState(defaultPageSize)\n  const pageSize = pageSizeProp ?? innerSize\n  const total = Math.max(1, totalItems !== undefined ? Math.ceil(totalItems / pageSize) : totalPagesProp)\n  const [inner, setInner] = React.useState(defaultPage)\n  const page = Math.min(Math.max(1, pageProp ?? inner), total)\n  const [draft, setDraft] = React.useState(\"\")\n\n  const go = (p: number) => {\n    const next = Math.min(Math.max(1, Math.round(p)), total)\n    if (next === page) return\n    if (pageProp === undefined) setInner(next)\n    onPageChange?.(next)\n  }\n  const setSize = (n: number) => {\n    if (pageSizeProp === undefined) setInnerSize(n)\n    onPageSizeChange?.(n)\n    // Keep the first visible row on screen when the page size changes.\n    const firstRow = (page - 1) * pageSize\n    const next = Math.floor(firstRow / n) + 1\n    if (pageProp === undefined) setInner(next)\n    if (next !== page) onPageChange?.(next)\n  }\n\n  const s = SIZE[size]\n  const radius = variant === \"pill\" ? \"rounded-full\" : SHAPE[shape]\n  const slide = animation === \"slide\" && !reduce\n  const btn = cn(\n    \"pc-pagination-btn relative inline-flex shrink-0 items-center justify-center gap-1 font-medium tabular-nums outline-none select-none\",\n    \"focus-visible:ring-3 focus-visible:ring-[color-mix(in_oklab,var(--pc-c)_40%,transparent)] disabled:pointer-events-none\",\n    s.btn,\n    s.icon,\n    radius,\n  )\n\n  const indicator = (layoutKey: string) =>\n    slide ? (\n      <motion.span layoutId={`${uid}-${layoutKey}`} className=\"pc-pagination-ind\" transition={spring.snap} style={radius === \"rounded-full\" ? { borderRadius: 999 } : undefined} />\n    ) : (\n      <span className=\"pc-pagination-ind\" />\n    )\n\n  const nav = (label: string, d: string, target: number, disabled: boolean, text?: string, textFirst?: boolean) => (\n    <button type=\"button\" aria-label={label} disabled={disabled} onClick={() => go(target)} className={cn(\"pc-press\", btn, text && \"px-2.5\")}>\n      {textFirst && text && <span className=\"hidden sm:inline\">{text}</span>}\n      <Icon d={d} />\n      {!textFirst && text && <span className=\"hidden sm:inline\">{text}</span>}\n    </button>\n  )\n\n  const info =\n    totalItems !== undefined\n      ? l.range(totalItems === 0 ? 0 : (page - 1) * pageSize + 1, Math.min(page * pageSize, totalItems), totalItems)\n      : l.pageOf(page, total)\n\n  const jumpField = (\n    <input\n      type=\"number\"\n      inputMode=\"numeric\"\n      min={1}\n      max={total}\n      aria-label={l.pageField}\n      placeholder={variant === \"minimal\" ? String(page) : l.pagePlaceholder}\n      value={draft}\n      onChange={(e) => setDraft(e.target.value)}\n      onKeyDown={(e) => {\n        if (e.key === \"Enter\" && draft && variant === \"minimal\") {\n          go(Number(draft))\n          setDraft(\"\")\n        }\n      }}\n      onBlur={() => {\n        if (variant === \"minimal\" && draft) {\n          go(Number(draft))\n          setDraft(\"\")\n        }\n      }}\n      className={cn(\"pc-pagination-field w-14 px-2 text-center tabular-nums\", s.field, radius === \"rounded-full\" ? \"rounded-full\" : radius === \"rounded-none\" ? \"rounded-none\" : \"rounded-md\")}\n    />\n  )\n\n  let pages: React.ReactNode\n  if (variant === \"minimal\") {\n    pages = (\n      <div className=\"flex items-center gap-2\">\n        {showFirstLast && nav(l.firstPage, FIRST, 1, page === 1)}\n        {showPrevNext && nav(l.previousPage, PREV, page - 1, page === 1, showLabels ? l.previous : undefined, false)}\n        <span className={cn(\"px-1 whitespace-nowrap text-muted-foreground tabular-nums\", s.text)} aria-live=\"polite\">\n          {showJump ? (\n            <span className=\"inline-flex items-center gap-2\">{l.pageOf(jumpField, total)}</span>\n          ) : (\n            l.pageOf(<span className=\"font-semibold text-foreground\">{page}</span>, total)\n          )}\n        </span>\n        {showPrevNext && nav(l.nextPage, NEXT, page + 1, page === total, showLabels ? l.next : undefined, true)}\n        {showFirstLast && nav(l.lastPage, LAST, total, page === total)}\n      </div>\n    )\n  } else if (variant === \"dots\") {\n    const win = Math.min(total, 9)\n    const start = Math.min(Math.max(1, page - Math.floor(win / 2)), total - win + 1)\n    const dots = Array.from({ length: win }, (_, i) => start + i)\n    pages = (\n      <div className=\"flex items-center gap-1\">\n        {showPrevNext && nav(l.previousSlide, PREV, page - 1, page === 1)}\n        <ul className=\"flex items-center\">\n          {dots.map((p, i) => {\n            const edge = (i === 0 && p > 1) || (i === dots.length - 1 && p < total)\n            const active = p === page\n            return (\n              <motion.li key={p} layout={slide ? \"position\" : false} transition={spring.snap}>\n                <button\n                  type=\"button\"\n                  aria-label={l.goToSlide(p, total)}\n                  aria-current={active ? \"true\" : undefined}\n                  onClick={() => go(p)}\n                  className={cn(\n                    \"pc-press pc-pagination-dotbtn relative flex h-6 items-center justify-center rounded-full outline-none focus-visible:ring-3 focus-visible:ring-[color-mix(in_oklab,var(--pc-c)_40%,transparent)]\",\n                    active ? \"w-8 px-1\" : \"w-4\",\n                  )}\n                >\n                  {active ? (\n                    <span className=\"relative block h-2 w-full\">{indicator(\"dot\")}</span>\n                  ) : (\n                    <span className=\"pc-pagination-dot block size-2 rounded-full\" style={edge ? { transform: \"scale(.6)\" } : undefined} />\n                  )}\n                </button>\n              </motion.li>\n            )\n          })}\n        </ul>\n        {showPrevNext && nav(l.nextSlide, NEXT, page + 1, page === total)}\n      </div>\n    )\n  } else {\n    const items = paginationRange(page, total, siblings, boundaries)\n    const jump = Math.max(3, siblings * 2 + 3)\n    pages = (\n      <ul className={cn(\"pc-pagination-track flex items-center\", variant === \"pill\" ? \"gap-0.5 rounded-full p-1\" : \"gap-1\", variant === \"neo\" && \"gap-1 sm:gap-2\")}>\n        {showFirstLast && <li>{nav(l.firstPage, FIRST, 1, page === 1)}</li>}\n        {showPrevNext && <li>{nav(l.previousPage, PREV, page - 1, page === 1, showLabels ? l.previous : undefined, false)}</li>}\n        {items.map((it) =>\n          typeof it === \"number\" ? (\n            <li key={it}>\n              <button type=\"button\" aria-label={l.goToPage(it)} aria-current={it === page ? \"page\" : undefined} onClick={() => go(it)} className={`pc-press ${btn}`}>\n                {it === page && indicator(\"page\")}\n                <span className=\"relative\">{it}</span>\n              </button>\n            </li>\n          ) : (\n            <li key={it}>\n              <button\n                type=\"button\"\n                aria-label={it === \"start-ellipsis\" ? l.skipBack(jump) : l.skipForward(jump)}\n                onClick={() => go(it === \"start-ellipsis\" ? page - jump : page + jump)}\n                className={cn(\"pc-press\", btn, \"pc-pagination-more\")}\n                style={variant === \"neo\" || variant === \"outline\" ? { border: 0, background: \"transparent\", boxShadow: \"none\" } : undefined}\n              >\n                <span className=\"pc-pagination-more-dots\">…</span>\n                <span className=\"pc-pagination-more-icon\">\n                  <Icon d={it === \"start-ellipsis\" ? FIRST : LAST} />\n                </span>\n              </button>\n            </li>\n          ),\n        )}\n        {showPrevNext && <li>{nav(l.nextPage, NEXT, page + 1, page === total, showLabels ? l.next : undefined, true)}</li>}\n        {showFirstLast && <li>{nav(l.lastPage, LAST, total, page === total)}</li>}\n      </ul>\n    )\n  }\n\n  const left = (showInfo && variant !== \"minimal\") || showPageSize\n  return (\n    <>\n      <GooduiTokens />\n      <style href=\"pc-pagination\" precedence=\"default\">\n        {CSS}\n      </style>\n      <nav\n        aria-label={ariaLabel}\n        data-slot=\"pagination\"\n        data-variant={variant}\n        data-tone={tone}\n        data-anim={reduce ? \"none\" : animation}\n        className={cn(\"pc-pagination flex flex-wrap items-center gap-x-4 gap-y-3\", s.text, left ? \"justify-between\" : \"justify-center\", className)}\n        {...props}\n      >\n        {left && (\n          <div className=\"flex items-center gap-3 text-muted-foreground\">\n            {showInfo && variant !== \"minimal\" && (\n              <span className=\"whitespace-nowrap tabular-nums\" aria-live=\"polite\">\n                {info}\n              </span>\n            )}\n            {showPageSize && (\n              <label className=\"flex items-center gap-2 whitespace-nowrap\">\n                <span>{l.rows}</span>\n                <select value={pageSize} onChange={(e) => setSize(Number(e.target.value))} className={cn(\"pc-pagination-field rounded-md ps-2 pe-1\", s.field)}>\n                  {pageSizeOptions.map((n) => (\n                    <option key={n} value={n}>\n                      {n}\n                    </option>\n                  ))}\n                </select>\n              </label>\n            )}\n          </div>\n        )}\n        {pages}\n        {showJump && variant !== \"minimal\" && (\n          <form\n            className=\"flex items-center gap-2 whitespace-nowrap text-muted-foreground\"\n            onSubmit={(e) => {\n              e.preventDefault()\n              if (draft) go(Number(draft))\n              setDraft(\"\")\n            }}\n          >\n            <span>{l.goTo}</span>\n            {jumpField}\n          </form>\n        )}\n      </nav>\n    </>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/goodui/pagination.tsx"
    }
  ],
  "categories": [
    "components",
    "core"
  ],
  "type": "registry:component"
}