Home / Function/ getComponentsList() — ui Function Reference

getComponentsList() — ui Function Reference

Architecture documentation for the getComponentsList() function in llm.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  c1f6c05b_e4a4_6c20_95f0_4272f96bb3dc["getComponentsList()"]
  d4c19c52_649d_50ba_748b_40d85e37474b["llm.ts"]
  c1f6c05b_e4a4_6c20_95f0_4272f96bb3dc -->|defined in| d4c19c52_649d_50ba_748b_40d85e37474b
  c62ff9be_3fe2_988c_c3bb_6f0e746aace4["processMdxForLLMs()"]
  c62ff9be_3fe2_988c_c3bb_6f0e746aace4 -->|calls| c1f6c05b_e4a4_6c20_95f0_4272f96bb3dc
  style c1f6c05b_e4a4_6c20_95f0_4272f96bb3dc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/lib/llm.ts lines 39–55

function getComponentsList() {
  const components = source.pageTree.children.find(
    (page) => page.$id === "components"
  )

  if (components?.type !== "folder") {
    return ""
  }

  const list = components.children.filter(
    (component) => component.type === "page"
  )

  return list
    .map((component) => `- [${component.name}](${component.url})`)
    .join("\n")
}

Subdomains

Defined In

Frequently Asked Questions

What does getComponentsList() do?
getComponentsList() is a function in the ui codebase, defined in apps/v4/lib/llm.ts.
Where is getComponentsList() defined?
getComponentsList() is defined in apps/v4/lib/llm.ts at line 39.
What calls getComponentsList()?
getComponentsList() is called by 1 function(s): processMdxForLLMs.

Analyze Your Own Codebase

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

Try Supermodel Free