{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "pagination",
  "title": "Pagination",
  "author": "AlgorizeTech",
  "description": "A page navigator with previous/next controls and truncated page ranges. Use it for paged tables and result lists.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "src/components/custom/blocks/PaginationBlock.tsx",
      "content": "\"use client\";\n\nimport { cn } from \"@/lib/utils\";\nimport {\n  Check,\n  ChevronDown,\n  ChevronLeft,\n  ChevronRight,\n  MoreHorizontal,\n} from \"lucide-react\";\nimport React, { useMemo, useState } from \"react\";\n\nconst getThemeColorHex = (c?: string) => {\n  if (!c) return undefined;\n  if (c.startsWith(\"#\") || c.startsWith(\"rgb\")) return c;\n  const map: Record<string, string> = {\n    primary: \"var(--primary)\",\n    default: \"var(--primary)\",\n    indigo: \"#6366f1\",\n    rose: \"#f43f5e\",\n    emerald: \"#10b981\",\n    lavender: \"#9b8afb\",\n    blue: \"#3b82f6\",\n    zinc: \"#71717a\",\n  };\n  return map[c] || c;\n};\n\n// ==========================================\n// 1. ROOT CONTEXT & LOGIC\n// ==========================================\nexport interface PaginationProps extends React.ComponentProps<\"nav\"> {\n  currentPage: number;\n  totalPages: number;\n  onPageChange?: (page: number) => void;\n  siblingCount?: number;\n  showEdges?: boolean;\n  /** Renders a \"Go to page\" control next to the page numbers. */\n  showPageJump?: boolean;\n  /** `input` is a free-typed page number, `select` lists every page. */\n  pageJumpVariant?: \"input\" | \"select\";\n  /** Renders a \"Rows per page\" selector. Pair it with `pageSize` and `onPageSizeChange`. */\n  showPageSize?: boolean;\n  pageSize?: number;\n  pageSizeOptions?: number[];\n  onPageSizeChange?: (pageSize: number) => void;\n  /** Themes the active states, focus rings and dropdown selection highlights. */\n  color?: string;\n}\n\nexport function Pagination({\n  className,\n  currentPage,\n  totalPages,\n  onPageChange,\n  siblingCount = 2,\n  showEdges = true,\n  showPageJump = false,\n  pageJumpVariant = \"input\",\n  showPageSize = false,\n  pageSize = 10,\n  pageSizeOptions = [10, 20, 50, 100],\n  onPageSizeChange,\n  color,\n  style,\n  ...props\n}: PaginationProps) {\n  const customColorHex = getThemeColorHex(color);\n  const navStyle = customColorHex\n    ? ({ ...style, \"--theme-color\": customColorHex } as React.CSSProperties)\n    : style;\n  // Advanced pagination logic to calculate ellipses\n  const paginationRange = useMemo(() => {\n    const totalPageNumbers = siblingCount + 5; // siblingCount + firstPage + lastPage + currentPage + 2*ellipses\n\n    if (totalPageNumbers >= totalPages) {\n      return Array.from({ length: totalPages }, (_, i) => i + 1);\n    }\n\n    const leftSiblingIndex = Math.max(currentPage - siblingCount, 1);\n    const rightSiblingIndex = Math.min(currentPage + siblingCount, totalPages);\n\n    const shouldShowLeftDots = leftSiblingIndex > 2;\n    const shouldShowRightDots = rightSiblingIndex < totalPages - 2;\n\n    const firstPageIndex = 1;\n    const lastPageIndex = totalPages;\n\n    if (!shouldShowLeftDots && shouldShowRightDots) {\n      const leftItemCount = 3 + 2 * siblingCount;\n      const leftRange = Array.from({ length: leftItemCount }, (_, i) => i + 1);\n      return [...leftRange, \"dots\", totalPages];\n    }\n\n    if (shouldShowLeftDots && !shouldShowRightDots) {\n      const rightItemCount = 3 + 2 * siblingCount;\n      const rightRange = Array.from(\n        { length: rightItemCount },\n        (_, i) => totalPages - rightItemCount + i + 1,\n      );\n      return [firstPageIndex, \"dots\", ...rightRange];\n    }\n\n    if (shouldShowLeftDots && shouldShowRightDots) {\n      const middleRange = Array.from(\n        { length: rightSiblingIndex - leftSiblingIndex + 1 },\n        (_, i) => leftSiblingIndex + i,\n      );\n      return [firstPageIndex, \"dots\", ...middleRange, \"dots\", lastPageIndex];\n    }\n\n    return [];\n  }, [totalPages, currentPage, siblingCount]);\n\n  // Mobile pagination logic (smaller sibling count to fit nicely: 1 2 3 4 5 ... 10 style)\n  const mobilePaginationRange = useMemo(() => {\n    const mobSibling = 1;\n    const totalPageNumbers = mobSibling + 5;\n\n    if (totalPageNumbers >= totalPages) {\n      return Array.from({ length: totalPages }, (_, i) => i + 1);\n    }\n\n    const leftSiblingIndex = Math.max(currentPage - mobSibling, 1);\n    const rightSiblingIndex = Math.min(currentPage + mobSibling, totalPages);\n\n    const shouldShowLeftDots = leftSiblingIndex > 2;\n    const shouldShowRightDots = rightSiblingIndex < totalPages - 2;\n\n    const firstPageIndex = 1;\n    const lastPageIndex = totalPages;\n\n    if (!shouldShowLeftDots && shouldShowRightDots) {\n      const leftItemCount = 3 + 2 * mobSibling;\n      const leftRange = Array.from({ length: leftItemCount }, (_, i) => i + 1);\n      return [...leftRange, \"dots\", totalPages];\n    }\n\n    if (shouldShowLeftDots && !shouldShowRightDots) {\n      const rightItemCount = 3 + 2 * mobSibling;\n      const rightRange = Array.from(\n        { length: rightItemCount },\n        (_, i) => totalPages - rightItemCount + i + 1\n      );\n      return [firstPageIndex, \"dots\", ...rightRange];\n    }\n\n    if (shouldShowLeftDots && shouldShowRightDots) {\n      const middleRange = Array.from(\n        { length: rightSiblingIndex - leftSiblingIndex + 1 },\n        (_, i) => leftSiblingIndex + i\n      );\n      return [firstPageIndex, \"dots\", ...middleRange, \"dots\", lastPageIndex];\n    }\n\n    return [];\n  }, [totalPages, currentPage]);\n\n  return (\n    <nav\n      role=\"navigation\"\n      aria-label=\"pagination\"\n      className={cn(\n        \"mx-auto flex w-full max-w-full flex-col items-center gap-3 px-2 sm:px-4 md:flex-row md:justify-center md:gap-4 md:px-0\",\n        className\n      )}\n      style={navStyle}\n      {...props}\n    >\n      {/* Desktop / Tablet List (md:flex) */}\n      <ul className=\"hidden flex-wrap items-center justify-center gap-1.5 md:flex md:gap-2 p-0 m-0 w-full md:w-auto\">\n        {showEdges && (\n          <PaginationPrevious\n            onClick={() => onPageChange?.(currentPage - 1)}\n            disabled={currentPage <= 1}\n          />\n        )}\n\n        {paginationRange.map((pageNumber, index) => {\n          if (pageNumber === \"dots\") {\n            return <PaginationEllipsis key={`desktop-dots-${index}`} />;\n          }\n\n          return (\n            <PaginationItem\n              key={`desktop-${pageNumber}`}\n              isActive={pageNumber === currentPage}\n              onClick={() => onPageChange?.(pageNumber as number)}\n            >\n              {pageNumber}\n            </PaginationItem>\n          );\n        })}\n\n        {showEdges && (\n          <PaginationNext\n            onClick={() => onPageChange?.(currentPage + 1)}\n            disabled={currentPage >= totalPages}\n          />\n        )}\n      </ul>\n\n      {/* Mobile List (md:hidden) */}\n      <ul className=\"flex items-center justify-center gap-1 sm:gap-1.5 md:hidden w-full p-0 m-0\">\n        {mobilePaginationRange.map((pageNumber, index) => {\n          if (pageNumber === \"dots\") {\n            return <PaginationEllipsis key={`mobile-dots-${index}`} />;\n          }\n\n          return (\n            <PaginationItem\n              key={`mobile-${pageNumber}`}\n              isActive={pageNumber === currentPage}\n              onClick={() => onPageChange?.(pageNumber as number)}\n            >\n              {pageNumber}\n            </PaginationItem>\n          );\n        })}\n      </ul>\n\n      {/* Small device: Previous & Next buttons together side-by-side on the bottom line */}\n      {showEdges && (\n        <div className=\"flex items-center justify-center gap-2 md:hidden\">\n          <PaginationPrevious\n            onClick={() => onPageChange?.(currentPage - 1)}\n            disabled={currentPage <= 1}\n          />\n          <PaginationNext\n            onClick={() => onPageChange?.(currentPage + 1)}\n            disabled={currentPage >= totalPages}\n          />\n        </div>\n      )}\n\n      {/* Optional controls. One wrapping row on mobile; on md+ the wrapper\n          dissolves (`contents`) so page size sits first and jump sits last. */}\n      {(showPageSize || showPageJump) && (\n        <div className=\"flex flex-wrap items-center justify-center gap-3 md:contents\">\n          {showPageSize && (\n            <PaginationPageSize\n              className=\"md:order-first\"\n              pageSize={pageSize}\n              pageSizeOptions={pageSizeOptions}\n              onPageSizeChange={onPageSizeChange}\n            />\n          )}\n          {showPageJump && (\n            <PaginationPageJump\n              className=\"md:order-last\"\n              variant={pageJumpVariant}\n              currentPage={currentPage}\n              totalPages={totalPages}\n              onPageChange={onPageChange}\n            />\n          )}\n        </div>\n      )}\n    </nav>\n  );\n}\n\n// ==========================================\n// 2. ATOMIC COMPONENTS\n// ==========================================\n\nexport interface PaginationItemProps\n  extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n  isActive?: boolean;\n}\n\nexport function PaginationItem({\n  className,\n  isActive,\n  ...props\n}: PaginationItemProps) {\n  return (\n    <li className=\"list-none m-0 p-0\">\n      <button\n        aria-current={isActive ? \"page\" : undefined}\n        className={cn(\n          \"flex h-8 w-8 items-center justify-center rounded-md text-sm font-medium transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-[var(--theme-color,var(--primary))] sm:h-9 sm:w-9\",\n          isActive\n            ? \"bg-[var(--theme-color,var(--primary))]/10 text-[var(--theme-color,var(--primary))] border border-[var(--theme-color,var(--primary))]/30 shadow-sm\"\n            : \"text-muted-foreground hover:bg-muted hover:text-foreground border border-transparent\",\n          className,\n        )}\n        {...props}\n      />\n    </li>\n  );\n}\n\nexport interface PaginationButtonProps\n  extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n  disabled?: boolean;\n  showLabel?: boolean;\n}\n\nexport function PaginationPrevious({\n  className,\n  disabled,\n  showLabel,\n  ...props\n}: PaginationButtonProps) {\n  return (\n    <li className=\"list-none m-0 p-0\">\n      <button\n        aria-label=\"Go to previous page\"\n        disabled={disabled}\n        className={cn(\n          \"flex h-9 items-center justify-center gap-1 rounded-md text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-[var(--theme-color,var(--primary))] pl-2.5 pr-3\",\n          disabled\n            ? \"pointer-events-none opacity-50 text-muted-foreground\"\n            : \"text-foreground hover:bg-muted hover:text-foreground\",\n          className,\n        )}\n        {...props}\n      >\n        <ChevronLeft className=\"h-4 w-4\" />\n        {showLabel !== false && <span>Previous</span>}\n      </button>\n    </li>\n  );\n}\n\nexport function PaginationNext({\n  className,\n  disabled,\n  showLabel,\n  ...props\n}: PaginationButtonProps) {\n  return (\n    <li className=\"list-none m-0 p-0\">\n      <button\n        aria-label=\"Go to next page\"\n        disabled={disabled}\n        className={cn(\n          \"flex h-9 items-center justify-center gap-1 rounded-md text-sm font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-[var(--theme-color,var(--primary))] pl-3 pr-2.5\",\n          disabled\n            ? \"pointer-events-none opacity-50 text-muted-foreground\"\n            : \"text-foreground hover:bg-muted hover:text-foreground\",\n          className,\n        )}\n        {...props}\n      >\n        {showLabel !== false && <span>Next</span>}\n        <ChevronRight className=\"h-4 w-4\" />\n      </button>\n    </li>\n  );\n}\n\nexport function PaginationEllipsis({\n  className,\n  ...props\n}: React.ComponentProps<\"span\">) {\n  return (\n    <li aria-hidden className=\"list-none m-0 p-0\">\n      <span\n        className={cn(\n          \"flex h-8 w-8 items-center justify-center text-muted-foreground sm:h-9 sm:w-9\",\n          className,\n        )}\n        {...props}\n      >\n        <MoreHorizontal className=\"h-4 w-4\" />\n        <span className=\"sr-only\">More pages</span>\n      </span>\n    </li>\n  );\n}\n\n// ==========================================\n// 3. OPTIONAL CONTROLS\n// ==========================================\n\nconst controlLabel =\n  \"flex items-center gap-2 text-xs font-medium text-muted-foreground whitespace-nowrap\";\nconst controlField =\n  \"h-8 text-xs font-semibold bg-background text-foreground border border-input rounded-md outline-none transition-all focus:border-[var(--theme-color,var(--primary))] focus:ring-2 focus:ring-[var(--theme-color,var(--primary))]/25\";\n\nexport interface PaginationDropdownOption {\n  value: number | string;\n  label: string;\n}\n\nexport interface PaginationCustomDropdownProps {\n  value?: number | string | readonly string[];\n  options: PaginationDropdownOption[];\n  onChange?: (value: number | string) => void;\n  className?: string;\n  ariaLabel?: string;\n}\n\nexport function PaginationCustomDropdown({\n  value,\n  options,\n  onChange,\n  className,\n  ariaLabel,\n}: PaginationCustomDropdownProps) {\n  const [isOpen, setIsOpen] = useState(false);\n  const [openUpwards, setOpenUpwards] = useState(false);\n  const containerRef = React.useRef<HTMLDivElement>(null);\n  const listRef = React.useRef<HTMLUListElement>(null);\n\n  const currentVal = Array.isArray(value) ? value[0] : value;\n  const selectedOption =\n    options.find((opt) => String(opt.value) === String(currentVal)) || options[0];\n\n  const toggleDropdown = () => {\n    if (!isOpen && containerRef.current) {\n      const rect = containerRef.current.getBoundingClientRect();\n      const spaceBelow = window.innerHeight - rect.bottom;\n      const parentCard = containerRef.current.closest(\".overflow-hidden, .bg-card, [data-slot='card']\");\n      let spaceBelowParent = 999;\n      if (parentCard) {\n        const parentRect = parentCard.getBoundingClientRect();\n        spaceBelowParent = parentRect.bottom - rect.bottom;\n      }\n      if (spaceBelow < 220 || spaceBelowParent < 220) {\n        setOpenUpwards(true);\n      } else {\n        setOpenUpwards(false);\n      }\n    }\n    setIsOpen((prev) => !prev);\n  };\n\n  React.useEffect(() => {\n    if (!isOpen) return;\n\n    const handlePointerDown = (e: MouseEvent | TouchEvent) => {\n      if (containerRef.current && !containerRef.current.contains(e.target as Node)) {\n        setIsOpen(false);\n      }\n    };\n\n    const handleKeyDown = (e: KeyboardEvent) => {\n      if (e.key === \"Escape\") {\n        setIsOpen(false);\n      }\n    };\n\n    document.addEventListener(\"mousedown\", handlePointerDown);\n    document.addEventListener(\"keydown\", handleKeyDown);\n    return () => {\n      document.removeEventListener(\"mousedown\", handlePointerDown);\n      document.removeEventListener(\"keydown\", handleKeyDown);\n    };\n  }, [isOpen]);\n\n  // Scroll active element into view when opened\n  React.useEffect(() => {\n    if (isOpen && listRef.current) {\n      const activeEl = listRef.current.querySelector(\"[data-active='true']\");\n      if (activeEl) {\n        activeEl.scrollIntoView({ block: \"nearest\" });\n      }\n    }\n  }, [isOpen]);\n\n  const handleSelect = (val: number | string) => {\n    onChange?.(val);\n    setIsOpen(false);\n  };\n\n  return (\n    <div ref={containerRef} className={cn(\"relative inline-block text-left\", className)}>\n      <button\n        type=\"button\"\n        role=\"combobox\"\n        aria-expanded={isOpen}\n        aria-label={ariaLabel}\n        aria-haspopup=\"listbox\"\n        onClick={toggleDropdown}\n        className={cn(\n          \"h-8 min-w-[56px] px-2.5 flex items-center justify-between gap-1.5 rounded-md border border-input bg-background text-xs font-semibold text-foreground transition-all outline-none cursor-pointer select-none\",\n          \"hover:border-[var(--theme-color,var(--primary))]/60 hover:bg-muted/40\",\n          \"focus-visible:border-[var(--theme-color,var(--primary))] focus-visible:ring-2 focus-visible:ring-[var(--theme-color,var(--primary))]/25\",\n          isOpen && \"border-[var(--theme-color,var(--primary))] ring-2 ring-[var(--theme-color,var(--primary))]/25 shadow-xs\"\n        )}\n      >\n        <span className=\"truncate\">{selectedOption?.label ?? value}</span>\n        <ChevronDown\n          className={cn(\n            \"h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform duration-200\",\n            isOpen && \"rotate-180 text-[var(--theme-color,var(--primary))]\"\n          )}\n        />\n      </button>\n\n      {isOpen && (\n        <ul\n          ref={listRef}\n          role=\"listbox\"\n          aria-label={ariaLabel}\n          className={cn(\n            \"absolute z-50 min-w-[76px] max-h-52 overflow-y-auto rounded-lg border border-border bg-popover/95 p-1 text-popover-foreground shadow-xl backdrop-blur-md outline-none animate-in fade-in-0 zoom-in-95 duration-100\",\n            openUpwards ? \"bottom-full mb-1.5\" : \"top-full mt-1.5\",\n            \"left-0\"\n          )}\n        >\n          {options.map((option) => {\n            const isSelected = String(option.value) === String(currentVal);\n            return (\n              <li\n                key={option.value}\n                role=\"option\"\n                aria-selected={isSelected}\n                data-active={isSelected ? \"true\" : undefined}\n                onClick={() => handleSelect(option.value)}\n                className={cn(\n                  \"relative flex items-center justify-between gap-2 px-2.5 py-1.5 rounded-md text-xs font-medium cursor-pointer transition-colors select-none\",\n                  isSelected\n                    ? \"bg-[var(--theme-color,var(--primary))]/15 text-[var(--theme-color,var(--primary))] font-semibold\"\n                    : \"text-foreground/90 hover:bg-[var(--theme-color,var(--primary))]/10 hover:text-[var(--theme-color,var(--primary))]\"\n                )}\n              >\n                <span>{option.label}</span>\n                {isSelected && (\n                  <Check className=\"h-3.5 w-3.5 shrink-0 text-[var(--theme-color,var(--primary))]\" />\n                )}\n              </li>\n            );\n          })}\n        </ul>\n      )}\n    </div>\n  );\n}\n\nexport function PaginationSelect({\n  className,\n  value,\n  onChange,\n  children,\n  ...props\n}: React.SelectHTMLAttributes<HTMLSelectElement>) {\n  const options: PaginationDropdownOption[] = React.useMemo(() => {\n    const list: PaginationDropdownOption[] = [];\n    React.Children.forEach(children, (child) => {\n      if (React.isValidElement(child) && (child.props as any)) {\n        const p = child.props as any;\n        list.push({\n          value: p.value ?? p.children,\n          label: String(p.children ?? p.value),\n        });\n      }\n    });\n    return list;\n  }, [children]);\n\n  if (options.length > 0) {\n    return (\n      <PaginationCustomDropdown\n        value={value ?? options[0]?.value}\n        options={options}\n        onChange={(val) => {\n          if (onChange) {\n            const fakeEvent = {\n              target: { value: String(val) },\n              currentTarget: { value: String(val) },\n            } as React.ChangeEvent<HTMLSelectElement>;\n            onChange(fakeEvent);\n          }\n        }}\n        className={className}\n      />\n    );\n  }\n\n  return (\n    <span className=\"relative inline-flex items-center\">\n      <select\n        className={cn(controlField, \"pl-2.5 pr-7 appearance-none cursor-pointer\", className)}\n        value={value}\n        onChange={onChange}\n        {...props}\n      >\n        {children}\n      </select>\n      <ChevronDown className=\"pointer-events-none absolute right-2 h-3.5 w-3.5 text-muted-foreground\" />\n    </span>\n  );\n}\n\nexport interface PaginationPageSizeProps\n  extends Omit<React.ComponentProps<\"div\">, \"onChange\"> {\n  pageSize: number;\n  pageSizeOptions?: number[];\n  onPageSizeChange?: (pageSize: number) => void;\n}\n\nexport function PaginationPageSize({\n  className,\n  pageSize,\n  pageSizeOptions = [10, 20, 50, 100],\n  onPageSizeChange,\n  ...props\n}: PaginationPageSizeProps) {\n  // Keep the current size selectable even when it isn't one of the presets.\n  const options = pageSizeOptions.includes(pageSize)\n    ? pageSizeOptions\n    : [...pageSizeOptions, pageSize].sort((a, b) => a - b);\n\n  return (\n    <div className={cn(controlLabel, className)} {...props}>\n      <span>Rows per page</span>\n      <PaginationCustomDropdown\n        value={pageSize}\n        options={options.map((size) => ({\n          value: size,\n          label: String(size),\n        }))}\n        onChange={(val) => onPageSizeChange?.(Number(val))}\n        ariaLabel=\"Rows per page\"\n      />\n    </div>\n  );\n}\n\nexport interface PaginationPageJumpProps\n  extends Omit<React.ComponentProps<\"form\">, \"onChange\"> {\n  currentPage: number;\n  totalPages: number;\n  onPageChange?: (page: number) => void;\n  variant?: \"input\" | \"select\";\n}\n\nexport function PaginationPageJump({\n  className,\n  currentPage,\n  totalPages,\n  onPageChange,\n  variant = \"input\",\n  ...props\n}: PaginationPageJumpProps) {\n  const [draft, setDraft] = useState(String(currentPage));\n\n  // A page change from elsewhere (number click, prev/next) resets the draft.\n  // Adjusted while rendering, when `currentPage` changes, rather than in an effect.\n  const [prevPage, setPrevPage] = useState(currentPage);\n  if (currentPage !== prevPage) {\n    setPrevPage(currentPage);\n    setDraft(String(currentPage));\n  }\n\n  const commit = () => {\n    const parsed = parseInt(draft, 10);\n    if (Number.isNaN(parsed)) {\n      setDraft(String(currentPage));\n      return;\n    }\n    const page = Math.min(Math.max(parsed, 1), totalPages);\n    setDraft(String(page));\n    if (page !== currentPage) onPageChange?.(page);\n  };\n\n  if (variant === \"select\") {\n    return (\n      <form\n        className={cn(controlLabel, className)}\n        onSubmit={(e) => e.preventDefault()}\n        {...props}\n      >\n        <div className=\"flex items-center gap-2\">\n          <span>Page</span>\n          <PaginationCustomDropdown\n            value={currentPage}\n            options={Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => ({\n              value: page,\n              label: String(page),\n            }))}\n            onChange={(val) => onPageChange?.(Number(val))}\n            ariaLabel=\"Go to page\"\n          />\n        </div>\n        <span>of {totalPages}</span>\n      </form>\n    );\n  }\n\n  return (\n    <form\n      className={cn(controlLabel, className)}\n      onSubmit={(e) => {\n        e.preventDefault();\n        commit();\n      }}\n      {...props}\n    >\n      <label className=\"flex items-center gap-2\">\n        Go to page\n        <input\n          type=\"number\"\n          inputMode=\"numeric\"\n          min={1}\n          max={totalPages}\n          value={draft}\n          onChange={(e) => setDraft(e.target.value)}\n          onBlur={commit}\n          className={cn(\n            controlField,\n            \"w-14 px-2 text-center [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none\",\n          )}\n        />\n      </label>\n      <button\n        type=\"submit\"\n        className=\"h-8 rounded-md border border-border px-2.5 text-xs font-semibold text-foreground transition-all hover:border-[var(--theme-color,var(--primary))]/50 hover:bg-[var(--theme-color,var(--primary))]/10 hover:text-[var(--theme-color,var(--primary))] outline-none focus-visible:ring-2 focus-visible:ring-[var(--theme-color,var(--primary))] cursor-pointer\"\n      >\n        Go\n      </button>\n    </form>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/custom/blocks/PaginationBlock.tsx"
    }
  ],
  "docs": "Renders framework-agnostic buttons, not router links, so wire navigation through your own handler.",
  "categories": [
    "navigation"
  ],
  "type": "registry:component"
}
