Home / Function/ getPromptUrl() — ui Function Reference

getPromptUrl() — ui Function Reference

Architecture documentation for the getPromptUrl() function in docs-copy-page.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c7c22e80_a1a2_5313_b272_2c615264f9fa["getPromptUrl()"]
  ffe50b19_b93e_6f57_8731_ec5ee957e005["docs-copy-page.tsx"]
  c7c22e80_a1a2_5313_b272_2c615264f9fa -->|defined in| ffe50b19_b93e_6f57_8731_ec5ee957e005
  style c7c22e80_a1a2_5313_b272_2c615264f9fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/components/docs-copy-page.tsx lines 21–27

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.
  `
  )}`
}

Subdomains

Frequently Asked Questions

What does getPromptUrl() do?
getPromptUrl() is a function in the ui codebase, defined in apps/v4/components/docs-copy-page.tsx.
Where is getPromptUrl() defined?
getPromptUrl() is defined in apps/v4/components/docs-copy-page.tsx at line 21.

Analyze Your Own Codebase

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

Try Supermodel Free