Home / File/ page.tsx — ui Source File

page.tsx — ui Source File

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

File tsx ComponentRegistry Styles 4 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  12db5bf2_e504_79a1_741a_3b5d5857c4bb["page.tsx"]
  1d141819_425e_b5fd_4c8e_32f7c6a42cf2["react"]
  12db5bf2_e504_79a1_741a_3b5d5857c4bb --> 1d141819_425e_b5fd_4c8e_32f7c6a42cf2
  f82b9fad_ce2d_47df_1e34_24c11585665d["icons"]
  12db5bf2_e504_79a1_741a_3b5d5857c4bb --> f82b9fad_ce2d_47df_1e34_24c11585665d
  75f117f1_1566_774d_1371_84923ec7a945["table"]
  12db5bf2_e504_79a1_741a_3b5d5857c4bb --> 75f117f1_1566_774d_1371_84923ec7a945
  bbc6cf16_315e_ca19_3401_c75dc9af5fff["registry-icons"]
  12db5bf2_e504_79a1_741a_3b5d5857c4bb --> bbc6cf16_315e_ca19_3401_c75dc9af5fff
  style 12db5bf2_e504_79a1_741a_3b5d5857c4bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"use client"

import * as React from "react"
import { Icons } from "@/__registry__/icons"

import {
  Table,
  TableBody,
  TableCell,
  TableHead,
  TableHeader,
  TableRow,
} from "@/registry/new-york/ui/table"
import { iconLibraries } from "@/registry/registry-icons"

export default function IconsPage() {
  return (
    <div>
      <Table>
        <TableHeader>
          <TableRow>
            <TableHead className="w-[240px]" align="left">
              name
            </TableHead>
            {Object.keys(iconLibraries).map((library) => (
              <TableHead key={library}>{library}</TableHead>
            ))}
          </TableRow>
        </TableHeader>
        <TableBody>
          {Object.entries(Icons).map(([name, icon]) => (
            <TableRow key={name}>
              <TableCell align="left">
                <code>{name}</code>
              </TableCell>
              {Object.entries(iconLibraries).map(([library, name]) => {
                const IconComponent = icon[library as keyof typeof icon]
                return (
                  <TableCell key={library} className="[&_svg]:h-4 [&_svg]:w-4">
                    <React.Suspense fallback={<div>Loading...</div>}>
                      {IconComponent && <IconComponent />}
                    </React.Suspense>
                  </TableCell>
                )
              })}
            </TableRow>
          ))}
        </TableBody>
      </Table>
    </div>
  )
}

Subdomains

Functions

Dependencies

  • icons
  • react
  • registry-icons
  • table

Frequently Asked Questions

What does page.tsx do?
page.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in page.tsx?
page.tsx defines 1 function(s): IconsPage.
What does page.tsx depend on?
page.tsx imports 4 module(s): icons, react, registry-icons, table.
Where is page.tsx in the architecture?
page.tsx is located at deprecated/www/app/(internal)/icons/page.tsx (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/app/(internal)/icons).

Analyze Your Own Codebase

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

Try Supermodel Free