getIndexForStyle() — ui Function Reference
Architecture documentation for the getIndexForStyle() function in registry.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD c5a597ec_26fe_0d08_07fb_4f7ec5884da8["getIndexForStyle()"] a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1["registry.ts"] c5a597ec_26fe_0d08_07fb_4f7ec5884da8 -->|defined in| a2cd9f1d_8dbe_d488_4209_1dbd8f522cc1 0a597ec0_ff62_72b7_f8b3_349460e34c0c["getRegistryComponent()"] 0a597ec0_ff62_72b7_f8b3_349460e34c0c -->|calls| c5a597ec_26fe_0d08_07fb_4f7ec5884da8 dae1e5ee_7a0a_29a4_4a13_43731ce7b108["getRegistryItems()"] dae1e5ee_7a0a_29a4_4a13_43731ce7b108 -->|calls| c5a597ec_26fe_0d08_07fb_4f7ec5884da8 e7d34ace_4c02_90be_4798_c4bf467583f2["getRegistryItem()"] e7d34ace_4c02_90be_4798_c4bf467583f2 -->|calls| c5a597ec_26fe_0d08_07fb_4f7ec5884da8 b64dce39_bc30_17e3_5963_dc80daa2a191["getBaseForStyle()"] c5a597ec_26fe_0d08_07fb_4f7ec5884da8 -->|calls| b64dce39_bc30_17e3_5963_dc80daa2a191 style c5a597ec_26fe_0d08_07fb_4f7ec5884da8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/lib/registry.ts lines 62–73
function getIndexForStyle(styleName: string) {
if (INDEXED_STYLES.includes(styleName)) {
return { index: StylesIndex, key: styleName }
}
const base = getBaseForStyle(styleName)
if (base) {
return { index: BasesIndex, key: base }
}
return { index: StylesIndex, key: styleName }
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does getIndexForStyle() do?
getIndexForStyle() is a function in the ui codebase, defined in apps/v4/lib/registry.ts.
Where is getIndexForStyle() defined?
getIndexForStyle() is defined in apps/v4/lib/registry.ts at line 62.
What does getIndexForStyle() call?
getIndexForStyle() calls 1 function(s): getBaseForStyle.
What calls getIndexForStyle()?
getIndexForStyle() is called by 3 function(s): getRegistryComponent, getRegistryItem, getRegistryItems.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free