getBaseComponent() — ui Function Reference
Architecture documentation for the getBaseComponent() function in api.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 991cb6c9_9a9c_4ed1_ddd8_13db8ef08abd["getBaseComponent()"] 943c084a_a0e9_6180_b716_36b2f3a304b1["api.ts"] 991cb6c9_9a9c_4ed1_ddd8_13db8ef08abd -->|defined in| 943c084a_a0e9_6180_b716_36b2f3a304b1 style 991cb6c9_9a9c_4ed1_ddd8_13db8ef08abd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(create)/lib/api.ts lines 32–41
export async function getBaseComponent(name: string, base: BaseName) {
const { Index } = await import("@/registry/bases/__index__")
const index = Index[base]
if (!index?.[name]) {
return null
}
return index[name].component
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getBaseComponent() do?
getBaseComponent() is a function in the ui codebase, defined in apps/v4/app/(create)/lib/api.ts.
Where is getBaseComponent() defined?
getBaseComponent() is defined in apps/v4/app/(create)/lib/api.ts at line 32.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free