Skip to content

Commit 2ef160e

Browse files
committedNov 25, 2024
Add tailiwind merge utility in lib
1 parent c9d6586 commit 2ef160e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎lib/utils.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { clsx, type ClassValue } from "clsx"
2+
import { twMerge } from "tailwind-merge"
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

0 commit comments

Comments
 (0)
Please sign in to comment.