Home / Function/ getShadcnCreateUrl() — ui Function Reference

getShadcnCreateUrl() — ui Function Reference

Architecture documentation for the getShadcnCreateUrl() function in create.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  d69893c4_0340_d5fe_65ed_220523fe9df0["getShadcnCreateUrl()"]
  9461b7e1_0062_183b_052f_41abc70dee91["create.ts"]
  d69893c4_0340_d5fe_65ed_220523fe9df0 -->|defined in| 9461b7e1_0062_183b_052f_41abc70dee91
  d6e73ad2_74c9_dd43_c275_b68a987b6b66["create()"]
  d6e73ad2_74c9_dd43_c275_b68a987b6b66 -->|calls| d69893c4_0340_d5fe_65ed_220523fe9df0
  af1661e5_df1f_24d5_26b4_f2ff90ba860a["handlePresetOption()"]
  af1661e5_df1f_24d5_26b4_f2ff90ba860a -->|calls| d69893c4_0340_d5fe_65ed_220523fe9df0
  style d69893c4_0340_d5fe_65ed_220523fe9df0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/commands/create.ts lines 384–392

function getShadcnCreateUrl(searchParams?: Record<string, string>) {
  const url = new URL(`${SHADCN_URL}/create`)
  if (searchParams) {
    for (const [key, value] of Object.entries(searchParams)) {
      url.searchParams.set(key, value)
    }
  }
  return url.toString()
}

Subdomains

Frequently Asked Questions

What does getShadcnCreateUrl() do?
getShadcnCreateUrl() is a function in the ui codebase, defined in packages/shadcn/src/commands/create.ts.
Where is getShadcnCreateUrl() defined?
getShadcnCreateUrl() is defined in packages/shadcn/src/commands/create.ts at line 384.
What calls getShadcnCreateUrl()?
getShadcnCreateUrl() is called by 2 function(s): create, handlePresetOption.

Analyze Your Own Codebase

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

Try Supermodel Free