PlaygroundPage() — ui Function Reference
Architecture documentation for the PlaygroundPage() function in page.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 30fa3a29_e79a_535f_2b02_4b3f2be5dc78["PlaygroundPage()"] f546dde4_68c5_f623_9286_65aeda13ccc5["page.tsx"] 30fa3a29_e79a_535f_2b02_4b3f2be5dc78 -->|defined in| f546dde4_68c5_f623_9286_65aeda13ccc5 style 30fa3a29_e79a_535f_2b02_4b3f2be5dc78 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/app/(app)/examples/playground/page.tsx lines 38–329
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">
<PresetSelector presets={presets} />
<PresetSave />
<div className="hidden space-x-2 md:flex">
<CodeViewer />
<PresetShare />
</div>
<PresetActions />
</div>
</div>
<Separator />
<Tabs defaultValue="complete" className="flex-1">
<div className="container h-full py-6">
<div className="grid h-full items-stretch gap-6 md:grid-cols-[1fr_200px]">
<div className="hidden flex-col space-y-4 sm:flex md:order-2">
<div className="grid gap-2">
<HoverCard openDelay={200}>
<HoverCardTrigger asChild>
<span className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
Mode
</span>
</HoverCardTrigger>
<HoverCardContent className="w-[320px] text-sm" side="left">
Choose the interface that best suits your task. You can
provide: a simple prompt to complete, starting and ending
text to insert a completion within, or some text with
instructions to edit it.
</HoverCardContent>
</HoverCard>
<TabsList className="grid grid-cols-3">
<TabsTrigger value="complete">
<span className="sr-only">Complete</span>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="none"
className="h-5 w-5"
>
<rect
x="4"
y="3"
width="12"
height="2"
rx="1"
fill="currentColor"
></rect>
<rect
x="4"
y="7"
width="12"
height="2"
rx="1"
fill="currentColor"
></rect>
<rect
x="4"
y="11"
width="3"
height="2"
Domain
Subdomains
Source
Frequently Asked Questions
What does PlaygroundPage() do?
PlaygroundPage() is a function in the ui codebase, defined in deprecated/www/app/(app)/examples/playground/page.tsx.
Where is PlaygroundPage() defined?
PlaygroundPage() is defined in deprecated/www/app/(app)/examples/playground/page.tsx at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free