Home / File/ pagination.tsx — ui Source File

pagination.tsx — ui Source File

Architecture documentation for pagination.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.

File tsx DocumentationAtlas Changelog 4 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  65e522e5_ab81_9d77_3823_a51d2044e862["pagination.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  65e522e5_ab81_9d77_3823_a51d2044e862 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  191e4a89_25e4_f7a3_d5fb_d71d101e0990["utils"]
  65e522e5_ab81_9d77_3823_a51d2044e862 --> 191e4a89_25e4_f7a3_d5fb_d71d101e0990
  c79cdc74_50fb_62bd_465f_35936d2c5eac["button"]
  65e522e5_ab81_9d77_3823_a51d2044e862 --> c79cdc74_50fb_62bd_465f_35936d2c5eac
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  65e522e5_ab81_9d77_3823_a51d2044e862 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style 65e522e5_ab81_9d77_3823_a51d2044e862 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"
import { cn } from "@/examples/radix/lib/utils"
import { Button } from "@/examples/radix/ui-rtl/button"
import {
  ChevronLeftIcon,
  ChevronRightIcon,
  MoreHorizontalIcon,
} from "lucide-react"

function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
  return (
    <nav
      role="navigation"
      aria-label="pagination"
      data-slot="pagination"
      className={cn("mx-auto flex w-full justify-center", className)}
      {...props}
    />
  )
}

function PaginationContent({
  className,
  ...props
}: React.ComponentProps<"ul">) {
  return (
    <ul
      data-slot="pagination-content"
      className={cn("flex items-center gap-0.5", className)}
      {...props}
    />
  )
}

function PaginationItem({ ...props }: React.ComponentProps<"li">) {
  return <li data-slot="pagination-item" {...props} />
}

type PaginationLinkProps = {
  isActive?: boolean
} & Pick<React.ComponentProps<typeof Button>, "size"> &
  React.ComponentProps<"a">

function PaginationLink({
  className,
  isActive,
  size = "icon",
  ...props
}: PaginationLinkProps) {
  return (
    <Button
      asChild
      variant={isActive ? "outline" : "ghost"}
      size={size}
      className={cn(className)}
    >
      <a
        aria-current={isActive ? "page" : undefined}
        data-slot="pagination-link"
        data-active={isActive}
// ... (72 more lines)

Subdomains

Dependencies

  • button
  • lucide-react
  • react
  • utils

Frequently Asked Questions

What does pagination.tsx do?
pagination.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in pagination.tsx?
pagination.tsx defines 7 function(s): Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious.
What does pagination.tsx depend on?
pagination.tsx imports 4 module(s): button, lucide-react, react, utils.
Where is pagination.tsx in the architecture?
pagination.tsx is located at apps/v4/examples/radix/ui-rtl/pagination.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix/ui-rtl).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free