Skip to content

Commit c6be771

Browse files
tailwind css cn function
1 parent 489b8cd commit c6be771

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/cn.ts

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

0 commit comments

Comments
 (0)