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 c5573beb_4d1f_82a7_139a_1510ca04f72c["pagination.tsx"] 1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"] c5573beb_4d1f_82a7_139a_1510ca04f72c --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2 8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"] c5573beb_4d1f_82a7_139a_1510ca04f72c --> 8ad666ec_1b20_adda_0392_87a60bdb3a68 7328fa0a_98b6_fe77_42fd_0d1582b24604["button"] c5573beb_4d1f_82a7_139a_1510ca04f72c --> 7328fa0a_98b6_fe77_42fd_0d1582b24604 de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"] c5573beb_4d1f_82a7_139a_1510ca04f72c --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2 style c5573beb_4d1f_82a7_139a_1510ca04f72c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import * as React from "react"
import { cn } from "@/registry/bases/base/lib/utils"
import { Button } from "@/registry/bases/base/ui/button"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
return (
<nav
role="navigation"
aria-label="pagination"
data-slot="pagination"
className={cn(
"cn-pagination mx-auto flex w-full justify-center",
className
)}
{...props}
/>
)
}
function PaginationContent({
className,
...props
}: React.ComponentProps<"ul">) {
return (
<ul
data-slot="pagination-content"
className={cn("cn-pagination-content flex items-center", 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
variant={isActive ? "outline" : "ghost"}
size={size}
className={cn("cn-pagination-link", className)}
nativeButton={false}
render={
<a
aria-current={isActive ? "page" : undefined}
data-slot="pagination-link"
data-active={isActive}
// ... (97 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- button
- icon-placeholder
- 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, UIPrimitives 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, icon-placeholder, react, utils.
Where is pagination.tsx in the architecture?
pagination.tsx is located at apps/v4/registry/bases/base/ui/pagination.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free