preset-share.tsx — ui Source File
Architecture documentation for preset-share.tsx, a tsx file in the ui codebase. 5 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR e32afc17_4346_5b21_fc24_3390704c009e["preset-share.tsx"] d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3["lucide-react"] e32afc17_4346_5b21_fc24_3390704c009e --> d39cd1e4_1b2d_9aa2_1d29_fd0b4bfb61c3 57e86e45_ac6e_7278_be08_9092724e8401["button"] e32afc17_4346_5b21_fc24_3390704c009e --> 57e86e45_ac6e_7278_be08_9092724e8401 80cf663d_a411_487c_d69e_ac9d405cd2ec["input"] e32afc17_4346_5b21_fc24_3390704c009e --> 80cf663d_a411_487c_d69e_ac9d405cd2ec d752035b_6ed3_c6ef_e27c_eef51af9ec8d["label"] e32afc17_4346_5b21_fc24_3390704c009e --> d752035b_6ed3_c6ef_e27c_eef51af9ec8d 64a3481c_a85b_fe79_409a_cb7f3f4bb871["popover"] e32afc17_4346_5b21_fc24_3390704c009e --> 64a3481c_a85b_fe79_409a_cb7f3f4bb871 5ee45142_aa10_ca73_456e_5946db3e53c3["page.tsx"] 5ee45142_aa10_ca73_456e_5946db3e53c3 --> e32afc17_4346_5b21_fc24_3390704c009e style e32afc17_4346_5b21_fc24_3390704c009e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { Copy } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/registry/new-york-v4/ui/popover"
export function PresetShare() {
return (
<Popover>
<PopoverTrigger asChild>
<Button variant="secondary">Share</Button>
</PopoverTrigger>
<PopoverContent align="end" className="flex w-[520px] flex-col gap-4">
<div className="flex flex-col gap-1 text-center sm:text-left">
<h3 className="text-lg font-semibold">Share preset</h3>
<p className="text-muted-foreground text-sm">
Anyone who has this link and an OpenAI account will be able to view
this.
</p>
</div>
<div className="relative flex-1">
<Label htmlFor="link" className="sr-only">
Link
</Label>
<Input
id="link"
defaultValue="https://platform.openai.com/playground/p/7bbKYQvsVkNmVb8NGcdUOLae?model=text-davinci-003"
readOnly
className="h-9 pr-10"
/>
<Button
type="submit"
size="icon"
variant="ghost"
className="absolute top-1 right-1 size-7"
>
<span className="sr-only">Copy</span>
<Copy className="size-3.5" />
</Button>
</div>
</PopoverContent>
</Popover>
)
}
Domain
Subdomains
Functions
Dependencies
- button
- input
- label
- lucide-react
- popover
Imported By
Source
Frequently Asked Questions
What does preset-share.tsx do?
preset-share.tsx is a source file in the ui codebase, written in tsx. It belongs to the ApplicationExhibition domain, PlaygroundAI subdomain.
What functions are defined in preset-share.tsx?
preset-share.tsx defines 1 function(s): PresetShare.
What does preset-share.tsx depend on?
preset-share.tsx imports 5 module(s): button, input, label, lucide-react, popover.
What files import preset-share.tsx?
preset-share.tsx is imported by 1 file(s): page.tsx.
Where is preset-share.tsx in the architecture?
preset-share.tsx is located at apps/v4/app/(app)/examples/playground/components/preset-share.tsx (domain: ApplicationExhibition, subdomain: PlaygroundAI, directory: apps/v4/app/(app)/examples/playground/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free