getRegistryComponent() — ui Function Reference
Architecture documentation for the getRegistryComponent() function in registry.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 0a597ec0_ff62_72b7_f8b3_349460e34c0c["getRegistryComponent()"] a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1["registry.ts"] 0a597ec0_ff62_72b7_f8b3_349460e34c0c -->|defined in| a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1 043972bf_c011_b759_18d9_c72a098828e0["getDemoComponent()"] 0a597ec0_ff62_72b7_f8b3_349460e34c0c -->|calls| 043972bf_c011_b759_18d9_c72a098828e0 c5a597ec_26fe_0d08_07fb_4f7ec5884da8["getIndexForStyle()"] 0a597ec0_ff62_72b7_f8b3_349460e34c0c -->|calls| c5a597ec_26fe_0d08_07fb_4f7ec5884da8 style 0a597ec0_ff62_72b7_f8b3_349460e34c0c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/lib/registry.ts lines 75–83
export function getRegistryComponent(name: string, styleName: string) {
const demoComponent = getDemoComponent(name, styleName)
if (demoComponent) {
return demoComponent
}
const { index, key } = getIndexForStyle(styleName)
return index[key]?.[name]?.component
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getRegistryComponent() do?
getRegistryComponent() is a function in the ui codebase, defined in apps/v4/lib/registry.ts.
Where is getRegistryComponent() defined?
getRegistryComponent() is defined in apps/v4/lib/registry.ts at line 75.
What does getRegistryComponent() call?
getRegistryComponent() calls 2 function(s): getDemoComponent, getIndexForStyle.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free