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 ComponentRegistry ChartRegistry 4 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  1b1c5d6f_f820_ddea_04ab_fcdafb0fca65["pagination.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  1b1c5d6f_f820_ddea_04ab_fcdafb0fca65 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6["utils"]
  1b1c5d6f_f820_ddea_04ab_fcdafb0fca65 --> ef4051f4_aeb7_8d0c_a726_0ba96ad80cf6
  381135fe_5f7a_910a_b8a2_691e9756a016["button"]
  1b1c5d6f_f820_ddea_04ab_fcdafb0fca65 --> 381135fe_5f7a_910a_b8a2_691e9756a016
  de6fac54_74ca_6c25_8f8b_d1ba3287dbf2["icon-placeholder"]
  1b1c5d6f_f820_ddea_04ab_fcdafb0fca65 --> de6fac54_74ca_6c25_8f8b_d1ba3287dbf2
  style 1b1c5d6f_f820_ddea_04ab_fcdafb0fca65 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"

import { cn } from "@/registry/bases/radix/lib/utils"
import { Button } from "@/registry/bases/radix/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
      asChild
      variant={isActive ? "outline" : "ghost"}
      size={size}
      className={cn("cn-pagination-link", className)}
    >
      <a
        aria-current={isActive ? "page" : undefined}
        data-slot="pagination-link"
        data-active={isActive}
// ... (96 more lines)

Subdomains

Dependencies

  • button
  • icon-placeholder
  • 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 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, icon-placeholder, react, utils.
Where is pagination.tsx in the architecture?
pagination.tsx is located at apps/v4/registry/bases/radix/ui/pagination.tsx (domain: ComponentRegistry, subdomain: ChartRegistry, directory: apps/v4/registry/bases/radix/ui).

Analyze Your Own Codebase

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

Try Supermodel Free