Home / Function/ getBaseForStyle() — ui Function Reference

getBaseForStyle() — ui Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/v4/lib/registry.ts lines 22–29

function getBaseForStyle(styleName: string) {
  for (const base of BASES) {
    if (styleName.startsWith(`${base.name}-`)) {
      return base.name
    }
  }
  return null
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free