utils.ts — ui Source File
Architecture documentation for utils.ts, a typescript file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 9ed88426_5c0e_123a_b1ff_2875a103885c["utils.ts"] 32072d07_3a34_f8e7_74a3_92d60468563d["clsx"] 9ed88426_5c0e_123a_b1ff_2875a103885c --> 32072d07_3a34_f8e7_74a3_92d60468563d 8f0d50d6_7103_5a47_9ef1_514d68c80604["tailwind-merge"] 9ed88426_5c0e_123a_b1ff_2875a103885c --> 8f0d50d6_7103_5a47_9ef1_514d68c80604 style 9ed88426_5c0e_123a_b1ff_2875a103885c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function absoluteUrl(path: string) {
return `${process.env.NEXT_PUBLIC_APP_URL}${path}`
}
Domain
Subdomains
Functions
Dependencies
- clsx
- tailwind-merge
Source
Frequently Asked Questions
What does utils.ts do?
utils.ts is a source file in the ui codebase, written in typescript. It belongs to the DocumentationAtlas domain, ContentSourcing subdomain.
What functions are defined in utils.ts?
utils.ts defines 2 function(s): absoluteUrl, cn.
What does utils.ts depend on?
utils.ts imports 2 module(s): clsx, tailwind-merge.
Where is utils.ts in the architecture?
utils.ts is located at apps/v4/lib/utils.ts (domain: DocumentationAtlas, subdomain: ContentSourcing, directory: apps/v4/lib).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free