Home / Function/ getIndexForStyle() — ui Function Reference

getIndexForStyle() — ui Function Reference

Architecture documentation for the getIndexForStyle() function in rehype.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  0cf50cf3_9378_48fd_056f_6d1b412973ab["getIndexForStyle()"]
  e2427336_4794_0f1c_982a_f2089ffcec85["rehype.ts"]
  0cf50cf3_9378_48fd_056f_6d1b412973ab -->|defined in| e2427336_4794_0f1c_982a_f2089ffcec85
  d0e9b290_610b_ba71_e7bb_ceeef3917003["rehypeComponent()"]
  d0e9b290_610b_ba71_e7bb_ceeef3917003 -->|calls| 0cf50cf3_9378_48fd_056f_6d1b412973ab
  9d8bdcac_10b0_e037_824e_790a734fe5aa["getBaseForStyle()"]
  0cf50cf3_9378_48fd_056f_6d1b412973ab -->|calls| 9d8bdcac_10b0_e037_824e_790a734fe5aa
  style 0cf50cf3_9378_48fd_056f_6d1b412973ab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/lib/rehype.ts lines 39–45

function getIndexForStyle(styleName: string) {
  const base = getBaseForStyle(styleName)
  if (base) {
    return { index: BasesIndex, key: base }
  }
  return { index: StylesIndex, key: styleName }
}

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free