MCPcopy
hub / github.com/vercel/next-forge / cn

Function cn

packages/design-system/lib/utils.ts:7–7  ·  view source on GitHub ↗
(...inputs: ClassValue[])

Source from the content-addressed store, hash-verified

5import { twMerge } from 'tailwind-merge';
6
7export const cn = (...inputs: ClassValue[]): string => twMerge(clsx(inputs));
8
9export const capitalize = (str: string) =>
10 str.charAt(0).toUpperCase() + str.slice(1);

Callers 15

DialogOverlayFunction · 0.90
DialogContentFunction · 0.90
DialogHeaderFunction · 0.90
DialogFooterFunction · 0.90
DialogTitleFunction · 0.90
DialogDescriptionFunction · 0.90
DrawerOverlayFunction · 0.90
DrawerContentFunction · 0.90
DrawerHeaderFunction · 0.90
DrawerFooterFunction · 0.90
DrawerTitleFunction · 0.90
DrawerDescriptionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected