docs-copy-page.tsx — ui Source File
Architecture documentation for docs-copy-page.tsx, a tsx file in the ui codebase. 6 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR ffe50b19_b93e_6f57_8731_ec5ee957e005["docs-copy-page.tsx"] 39a0d62e_8e7d_d097_eb95_91d2bca361f7["icons-react"] ffe50b19_b93e_6f57_8731_ec5ee957e005 --> 39a0d62e_8e7d_d097_eb95_91d2bca361f7 16fc7cf6_3e3a_9efc_f45b_63496f779853["use-copy-to-clipboard"] ffe50b19_b93e_6f57_8731_ec5ee957e005 --> 16fc7cf6_3e3a_9efc_f45b_63496f779853 57e86e45_ac6e_7278_be08_9092724e8401["button"] ffe50b19_b93e_6f57_8731_ec5ee957e005 --> 57e86e45_ac6e_7278_be08_9092724e8401 d1cb37f2_0d1d_01bc_0d60_a15219afac51["dropdown-menu"] ffe50b19_b93e_6f57_8731_ec5ee957e005 --> d1cb37f2_0d1d_01bc_0d60_a15219afac51 64a3481c_a85b_fe79_409a_cb7f3f4bb871["popover"] ffe50b19_b93e_6f57_8731_ec5ee957e005 --> 64a3481c_a85b_fe79_409a_cb7f3f4bb871 b2c60dee_4ede_8485_a6b4_91c999cdc69f["separator"] ffe50b19_b93e_6f57_8731_ec5ee957e005 --> b2c60dee_4ede_8485_a6b4_91c999cdc69f style ffe50b19_b93e_6f57_8731_ec5ee957e005 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"use client"
import { IconCheck, IconChevronDown, IconCopy } from "@tabler/icons-react"
import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/registry/new-york-v4/ui/dropdown-menu"
import {
Popover,
PopoverAnchor,
PopoverContent,
PopoverTrigger,
} from "@/registry/new-york-v4/ui/popover"
import { Separator } from "@/registry/new-york-v4/ui/separator"
function getPromptUrl(baseURL: string, url: string) {
return `${baseURL}?q=${encodeURIComponent(
`I’m looking at this shadcn/ui documentation: ${url}.
Help me understand how to use it. Be ready to explain concepts, give examples, or help debug based on it.
`
)}`
}
const menuItems = {
markdown: (url: string) => (
<a href={`${url}.md`} target="_blank" rel="noopener noreferrer">
<svg strokeLinejoin="round" viewBox="0 0 22 16">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M19.5 2.25H2.5C1.80964 2.25 1.25 2.80964 1.25 3.5V12.5C1.25 13.1904 1.80964 13.75 2.5 13.75H19.5C20.1904 13.75 20.75 13.1904 20.75 12.5V3.5C20.75 2.80964 20.1904 2.25 19.5 2.25ZM2.5 1C1.11929 1 0 2.11929 0 3.5V12.5C0 13.8807 1.11929 15 2.5 15H19.5C20.8807 15 22 13.8807 22 12.5V3.5C22 2.11929 20.8807 1 19.5 1H2.5ZM3 4.5H4H4.25H4.6899L4.98715 4.82428L7 7.02011L9.01285 4.82428L9.3101 4.5H9.75H10H11V5.5V11.5H9V7.79807L7.73715 9.17572L7 9.97989L6.26285 9.17572L5 7.79807V11.5H3V5.5V4.5ZM15 8V4.5H17V8H19.5L17 10.5L16 11.5L15 10.5L12.5 8H15Z"
fill="currentColor"
/>
</svg>
View as Markdown
</a>
),
v0: (url: string) => (
<a
href={getPromptUrl("https://v0.dev", url)}
target="_blank"
rel="noopener noreferrer"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 147 70"
className="size-4.5 -translate-x-px"
>
<path d="M56 50.203V14h14v46.156C70 65.593 65.593 70 60.156 70c-2.596 0-5.158-1-7-2.843L0 14h19.797L56 50.203ZM147 56h-14V23.953L100.953 56H133v14H96.687C85.814 70 77 61.186 77 50.312V14h14v32.156L123.156 14H91V0h36.312C138.186 0 147 8.814 147 19.688V56Z" />
</svg>
<span className="-translate-x-[2px]">Open in v0</span>
</a>
),
chatgpt: (url: string) => (
// ... (164 more lines)
Domain
Subdomains
Functions
Dependencies
- button
- dropdown-menu
- icons-react
- popover
- separator
- use-copy-to-clipboard
Source
Frequently Asked Questions
What does docs-copy-page.tsx do?
docs-copy-page.tsx is a source file in the ui codebase, written in tsx. It belongs to the Internationalization domain, RTLLayout subdomain.
What functions are defined in docs-copy-page.tsx?
docs-copy-page.tsx defines 2 function(s): DocsCopyPage, getPromptUrl.
What does docs-copy-page.tsx depend on?
docs-copy-page.tsx imports 6 module(s): button, dropdown-menu, icons-react, popover, separator, use-copy-to-clipboard.
Where is docs-copy-page.tsx in the architecture?
docs-copy-page.tsx is located at apps/v4/components/docs-copy-page.tsx (domain: Internationalization, subdomain: RTLLayout, directory: apps/v4/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free