MCPcopy
hub / github.com/shadcn-ui/taxonomy / cn

Function cn

lib/utils.ts:6–8  ·  view source on GitHub ↗
(...inputs: ClassValue[])

Source from the content-addressed store, hash-verified

4import { env } from "@/env.mjs"
5
6export function cn(...inputs: ClassValue[]) {
7 return twMerge(clsx(inputs))
8}
9
10export function formatDate(input: string | number): string {
11 const date = new Date(input)

Callers 15

DocsPagerFunction · 0.90
EditorFunction · 0.90
UserNameFormFunction · 0.90
MdxCardFunction · 0.90
BillingFormFunction · 0.90
MobileNavFunction · 0.90
DashboardShellFunction · 0.90
DashboardNavFunction · 0.90
CalloutFunction · 0.90
SiteFooterFunction · 0.90
PostCreateButtonFunction · 0.90
DocsPageHeaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected