Home / File/ page.tsx — ui Source File

page.tsx — ui Source File

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

File tsx ComponentRegistry Styles 29 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  f546dde4_68c5_f623_9286_65aeda13ccc5["page.tsx"]
  48859566_1a54_c160_15d6_ebd1ee91cb56["code-viewer.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 48859566_1a54_c160_15d6_ebd1ee91cb56
  8daedbd4_2c17_0efd_1e56_87cbeebcbc42["CodeViewer"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 8daedbd4_2c17_0efd_1e56_87cbeebcbc42
  12e0ee77_0f04_b887_ce1d_8d7c2d6fd57c["maxlength-selector.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 12e0ee77_0f04_b887_ce1d_8d7c2d6fd57c
  3f0adde3_14b3_eb5a_b3bb_04d5153287ac["MaxLengthSelector"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 3f0adde3_14b3_eb5a_b3bb_04d5153287ac
  c9ff8f7d_3661_b534_3ddc_912a75766464["model-selector.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> c9ff8f7d_3661_b534_3ddc_912a75766464
  4bd3eb52_4454_5ce4_da22_5aada458f5e5["ModelSelector"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 4bd3eb52_4454_5ce4_da22_5aada458f5e5
  80012eb6_c495_fd45_7e3b_9b7c2f496bc3["preset-actions.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 80012eb6_c495_fd45_7e3b_9b7c2f496bc3
  3df8c302_50da_16ff_2d09_e99856a94cc9["PresetActions"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 3df8c302_50da_16ff_2d09_e99856a94cc9
  80973b14_d703_d5b0_7b55_201bd0e71851["preset-save.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 80973b14_d703_d5b0_7b55_201bd0e71851
  8a883a65_4f08_081c_b5af_dab4a85d323a["PresetSave"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 8a883a65_4f08_081c_b5af_dab4a85d323a
  bcef1eae_4d51_c200_0240_a1d4444e1067["preset-selector.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> bcef1eae_4d51_c200_0240_a1d4444e1067
  fe1a4960_7839_0df5_4da3_5bdc4a0a9c8b["PresetSelector"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> fe1a4960_7839_0df5_4da3_5bdc4a0a9c8b
  25b6c8d2_fbc1_0fd0_7e92_3936ae125594["preset-share.tsx"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 25b6c8d2_fbc1_0fd0_7e92_3936ae125594
  5f893c86_d96f_3999_bd03_bd5394163037["PresetShare"]
  f546dde4_68c5_f623_9286_65aeda13ccc5 --> 5f893c86_d96f_3999_bd03_bd5394163037
  style f546dde4_68c5_f623_9286_65aeda13ccc5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Metadata } from "next"
import Image from "next/image"
import { RotateCcw } from "lucide-react"

import { Button } from "@/registry/new-york/ui/button"
import {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger,
} from "@/registry/new-york/ui/hover-card"
import { Label } from "@/registry/new-york/ui/label"
import { Separator } from "@/registry/new-york/ui/separator"
import {
  Tabs,
  TabsContent,
  TabsList,
  TabsTrigger,
} from "@/registry/new-york/ui/tabs"
import { Textarea } from "@/registry/new-york/ui/textarea"

import { CodeViewer } from "./components/code-viewer"
import { MaxLengthSelector } from "./components/maxlength-selector"
import { ModelSelector } from "./components/model-selector"
import { PresetActions } from "./components/preset-actions"
import { PresetSave } from "./components/preset-save"
import { PresetSelector } from "./components/preset-selector"
import { PresetShare } from "./components/preset-share"
import { TemperatureSelector } from "./components/temperature-selector"
import { TopPSelector } from "./components/top-p-selector"
import { models, types } from "./data/models"
import { presets } from "./data/presets"

export const metadata: Metadata = {
  title: "Playground",
  description: "The OpenAI Playground built using the components.",
}

export default function PlaygroundPage() {
  return (
    <>
      <div className="md:hidden">
        <Image
          src="/examples/playground-light.png"
          width={1280}
          height={916}
          alt="Playground"
          className="block dark:hidden"
        />
        <Image
          src="/examples/playground-dark.png"
          width={1280}
          height={916}
          alt="Playground"
          className="hidden dark:block"
        />
      </div>
      <div className="hidden h-full flex-col md:flex">
        <div className="container flex flex-col items-start justify-between space-y-2 py-4 sm:flex-row sm:items-center sm:space-y-0 md:h-16">
          <h2 className="text-lg font-semibold">Playground</h2>
          <div className="ml-auto flex w-full space-x-2 sm:justify-end">
// ... (270 more lines)

Subdomains

Functions

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): PlaygroundPage.
What does page.tsx depend on?
page.tsx imports 29 module(s): CodeViewer, MaxLengthSelector, ModelSelector, PresetActions, PresetSave, PresetSelector, PresetShare, TemperatureSelector, and 21 more.
Where is page.tsx in the architecture?
page.tsx is located at deprecated/www/app/(app)/examples/playground/page.tsx (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/app/(app)/examples/playground).

Analyze Your Own Codebase

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

Try Supermodel Free