Download src/lib/utils.ts from Leon4gr45/Velo: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/spaces/Leon4gr45/Velo/resolve/main/src/lib/utils.ts
- Command line
-
hf download hf://spaces/Leon4gr45/Velo/src/lib/utils.ts
-
curl -L -o utils.ts https://huggingface.co/spaces/Leon4gr45/Velo/resolve/main/src/lib/utils.ts
230 Bytes
| import { type ClassValue, clsx } from 'clsx' | |
| import { twMerge } from 'tailwind-merge' | |
| /** 合并 Tailwind 类名(shadcn/ui 标准工具函数) */ | |
| export function cn(...inputs: ClassValue[]) { | |
| return twMerge(clsx(inputs)) | |
| } | |