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
  abbdc012_4b4b_899c_97c8_413f21983b01["pagination.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  abbdc012_4b4b_899c_97c8_413f21983b01 --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  3d9438e8_7604_787c_4898_907262aff28b["utils"]
  abbdc012_4b4b_899c_97c8_413f21983b01 --> 3d9438e8_7604_787c_4898_907262aff28b
  43bb9fc1_6eab_13df_a99b_981eb13b9ec1["button"]
  abbdc012_4b4b_899c_97c8_413f21983b01 --> 43bb9fc1_6eab_13df_a99b_981eb13b9ec1
  d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"]
  abbdc012_4b4b_899c_97c8_413f21983b01 --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3
  style abbdc012_4b4b_899c_97c8_413f21983b01 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as React from "react"
import { cn } from "@/examples/base/lib/utils"
import { Button } from "@/examples/base/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
      variant={isActive ? "outline" : "ghost"}
      size={size}
      className={cn(className)}
      nativeButton={false}
      render={
        <a
          aria-current={isActive ? "page" : undefined}
          data-slot="pagination-link"
          data-active={isActive}
// ... (73 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/base/ui-rtl/pagination.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/base/ui-rtl).

Analyze Your Own Codebase

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

Try Supermodel Free