MCPcopy
hub / github.com/21st-dev/1code / cn

Function cn

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

Source from the content-addressed store, hash-verified

2import { twMerge } from "tailwind-merge"
3
4export function cn(...inputs: ClassValue[]) {
5 return twMerge(clsx(inputs))
6}
7
8// Re-export platform utilities
9export { isMacOS as isMac } from "./utils/platform"

Callers 15

mermaid-block.tsxFile · 0.90
CodeBlockFunction · 0.90
dialog.tsxFile · 0.90
DialogHeaderFunction · 0.90
DialogFooterFunction · 0.90
CanvasDialogHeaderFunction · 0.90
CanvasDialogBodyFunction · 0.90
CanvasDialogFooterFunction · 0.90
label.tsxFile · 0.90
switch.tsxFile · 0.90
button-group.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected