admin-vben/packages/@core/shared/toolkit/src/cn.ts

9 lines
178 B
TypeScript
Raw Normal View History

2024-05-19 13:20:42 +00:00
import { type ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
function cn(...inputs: ClassValue[]) {
2024-05-19 13:20:42 +00:00
return twMerge(clsx(inputs));
}
export { cn };