add: tailwind merge

This commit is contained in:
Huy Bui
2024-07-27 13:14:46 +07:00
parent 95366776e8
commit c025b64428
3 changed files with 32 additions and 3 deletions

6
src/utils/cn.js Normal file
View File

@@ -0,0 +1,6 @@
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...args) {
return twMerge(clsx(args));
}