MCPcopy
hub / github.com/bernaferrari/FigmaToCode / cn

Function cn

packages/plugin-ui/src/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
8const createCanvasImageUrl = (width: number, height: number): string => {
9 const canvas = document.createElement("canvas");

Callers 15

CopyButtonFunction · 0.90
SelectableToggleFunction · 0.90
AboutFunction · 0.90
PreviewFunction · 0.90
CardFunction · 0.90
CardHeaderFunction · 0.90
CardTitleFunction · 0.90
CardDescriptionFunction · 0.90
CardActionFunction · 0.90
CardContentFunction · 0.90
CardFooterFunction · 0.90
TooltipContentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected