Skip to content

Commit c509cca

Browse files
committed
feat(utils): add utility function for merging Tailwind CSS classes
1 parent f5b7763 commit c509cca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/utils.ts

Lines changed: 6 additions & 0 deletions
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)