Home / Function/ getDemoComponent() — ui Function Reference

getDemoComponent() — ui Function Reference

Architecture documentation for the getDemoComponent() function in registry.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  043972bf_c011_b759_18d9_c72a098828e0["getDemoComponent()"]
  a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1["registry.ts"]
  043972bf_c011_b759_18d9_c72a098828e0 -->|defined in| a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1
  0a597ec0_ff62_72b7_f8b3_349460e34c0c["getRegistryComponent()"]
  0a597ec0_ff62_72b7_f8b3_349460e34c0c -->|calls| 043972bf_c011_b759_18d9_c72a098828e0
  b64dce39_bc30_17e3_5963_dc80daa2a191["getBaseForStyle()"]
  043972bf_c011_b759_18d9_c72a098828e0 -->|calls| b64dce39_bc30_17e3_5963_dc80daa2a191
  style 043972bf_c011_b759_18d9_c72a098828e0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/lib/registry.ts lines 31–35

export function getDemoComponent(name: string, styleName: string) {
  const base = getBaseForStyle(styleName)
  if (!base) return undefined
  return ExamplesIndex[base]?.[name]?.component
}

Subdomains

Frequently Asked Questions

What does getDemoComponent() do?
getDemoComponent() is a function in the ui codebase, defined in apps/v4/lib/registry.ts.
Where is getDemoComponent() defined?
getDemoComponent() is defined in apps/v4/lib/registry.ts at line 31.
What does getDemoComponent() call?
getDemoComponent() calls 1 function(s): getBaseForStyle.
What calls getDemoComponent()?
getDemoComponent() is called by 1 function(s): getRegistryComponent.

Analyze Your Own Codebase

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

Try Supermodel Free