getCurrentBase() — ui Function Reference
Architecture documentation for the getCurrentBase() function in page-tree.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 7198c1a5_014d_9b88_1e65_50ef5382ca74["getCurrentBase()"] 447b1674_3ebd_165e_d19d_dc75a770805d["page-tree.ts"] 7198c1a5_014d_9b88_1e65_50ef5382ca74 -->|defined in| 447b1674_3ebd_165e_d19d_dc75a770805d style 7198c1a5_014d_9b88_1e65_50ef5382ca74 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/lib/page-tree.ts lines 59–62
export function getCurrentBase(pathname: string): string {
const baseMatch = pathname.match(/\/docs\/components\/(radix|base)\//)
return baseMatch ? baseMatch[1] : "radix" // Default to radix.
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getCurrentBase() do?
getCurrentBase() is a function in the ui codebase, defined in apps/v4/lib/page-tree.ts.
Where is getCurrentBase() defined?
getCurrentBase() is defined in apps/v4/lib/page-tree.ts at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free