251127:1700 Frontend Start Build
This commit is contained in:
11
frontend/lib/utils.ts
Normal file
11
frontend/lib/utils.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
// File: lib/utils.ts
|
||||
import { type ClassValue, clsx } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
/**
|
||||
* ฟังก์ชันสำหรับรวม ClassNames โดยใช้ clsx และ tailwind-merge
|
||||
* ช่วยแก้ปัญหา class conflict ของ Tailwind
|
||||
*/
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
Reference in New Issue
Block a user