Home / Function/ IndexPage() — ui Function Reference

IndexPage() — ui Function Reference

Architecture documentation for the IndexPage() function in page.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  d4631418_9872_8299_9dc4_da4bca9db92e["IndexPage()"]
  ef39b9e0_8e38_1611_3005_265d1df55834["page.tsx"]
  d4631418_9872_8299_9dc4_da4bca9db92e -->|defined in| ef39b9e0_8e38_1611_3005_265d1df55834
  style d4631418_9872_8299_9dc4_da4bca9db92e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/app/(app)/(root)/page.tsx lines 50–97

export default function IndexPage() {
  return (
    <div className="flex flex-1 flex-col">
      <PageHeader>
        <Announcement />
        <PageHeaderHeading className="max-w-4xl">{title}</PageHeaderHeading>
        <PageHeaderDescription>{description}</PageHeaderDescription>
        <PageActions>
          <Button asChild size="sm" className="h-[31px] rounded-lg">
            <Link href="/docs/installation">Get Started</Link>
          </Button>
          <Button asChild size="sm" variant="ghost" className="rounded-lg">
            <Link href="/docs/components">View Components</Link>
          </Button>
        </PageActions>
      </PageHeader>
      <PageNav className="hidden md:flex">
        <ExamplesNav className="[&>a:first-child]:text-primary flex-1 overflow-hidden" />
        <ThemeSelector className="mr-4 hidden md:flex" />
      </PageNav>
      <div className="container-wrapper section-soft flex-1 pb-6">
        <div className="container overflow-hidden">
          <section className="border-border/50 -mx-4 w-[160vw] overflow-hidden rounded-lg border md:hidden md:w-[150vw]">
            <Image
              src="/r/styles/new-york-v4/dashboard-01-light.png"
              width={1400}
              height={875}
              alt="Dashboard"
              className="block dark:hidden"
              priority
            />
            <Image
              src="/r/styles/new-york-v4/dashboard-01-dark.png"
              width={1400}
              height={875}
              alt="Dashboard"
              className="hidden dark:block"
              priority
            />
          </section>
          <section className="theme-container hidden md:block">
            <RootComponents />
          </section>
        </div>
      </div>
    </div>
  )
}

Subdomains

Frequently Asked Questions

What does IndexPage() do?
IndexPage() is a function in the ui codebase, defined in apps/v4/app/(app)/(root)/page.tsx.
Where is IndexPage() defined?
IndexPage() is defined in apps/v4/app/(app)/(root)/page.tsx at line 50.

Analyze Your Own Codebase

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

Try Supermodel Free