pagination.tsx — ui Source File
Architecture documentation for pagination.tsx, a tsx file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 61a3e142_16cd_6db2_747f_39c9c0364ef0["pagination.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] 61a3e142_16cd_6db2_747f_39c9c0364ef0 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] 61a3e142_16cd_6db2_747f_39c9c0364ef0 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 79081a1f_55a3_945a_fb8c_d53d6d3eab81["utils"] 61a3e142_16cd_6db2_747f_39c9c0364ef0 --> 79081a1f_55a3_945a_fb8c_d53d6d3eab81 57e86e45_ac6e_7278_be08_9092724e8401["button"] 61a3e142_16cd_6db2_747f_39c9c0364ef0 --> 57e86e45_ac6e_7278_be08_9092724e8401 style 61a3e142_16cd_6db2_747f_39c9c0364ef0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import {
ChevronLeftIcon,
ChevronRightIcon,
MoreHorizontalIcon,
} from "lucide-react"
import { cn } from "@/lib/utils"
import { buttonVariants, type Button } from "@/registry/new-york-v4/ui/button"
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 flex-row items-center gap-1", 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 (
<a
aria-current={isActive ? "page" : undefined}
data-slot="pagination-link"
data-active={isActive}
className={cn(
buttonVariants({
variant: isActive ? "outline" : "ghost",
size,
}),
// ... (68 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- button
- lucide-react
- react
- utils
Source
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 ComponentRegistry domain, ChartRegistry 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/registry/new-york-v4/ui/pagination.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/new-york-v4/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free