Home / Function/ getPromptUrl() — ui Function Reference

getPromptUrl() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  98888e0e_761c_7925_0bfe_2881e92b2d79["getPromptUrl()"]
  2fc9827c_d7f2_679a_318b_0e25758f5ea1["docs-page-links.tsx"]
  98888e0e_761c_7925_0bfe_2881e92b2d79 -->|defined in| 2fc9827c_d7f2_679a_318b_0e25758f5ea1
  aa019259_976d_56b3_af96_90af8d278f78["DocsPageLinks()"]
  aa019259_976d_56b3_af96_90af8d278f78 -->|calls| 98888e0e_761c_7925_0bfe_2881e92b2d79
  style 98888e0e_761c_7925_0bfe_2881e92b2d79 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/components/docs-page-links.tsx lines 7–13

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

Called By

Frequently Asked Questions

What does getPromptUrl() do?
getPromptUrl() is a function in the ui codebase, defined in apps/v4/components/docs-page-links.tsx.
Where is getPromptUrl() defined?
getPromptUrl() is defined in apps/v4/components/docs-page-links.tsx at line 7.
What calls getPromptUrl()?
getPromptUrl() is called by 1 function(s): DocsPageLinks.

Analyze Your Own Codebase

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

Try Supermodel Free