Download apps/web/src/lib/utils.ts from hunian003/message: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/hunian003/message/resolve/main/apps/web/src/lib/utils.ts
- Command line
-
hf download hf://spaces/hunian003/message/apps/web/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/hunian003/message/resolve/main/apps/web/src/lib/utils.ts
255 Bytes
| import { clsx, type ClassValue } from 'clsx'; | |
| import { twMerge } from 'tailwind-merge'; | |
| // 沿用已有产物的先合并条件类名、再消除 Tailwind 冲突的顺序。 | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)); | |
| } | |