Skip to content

Commit

Permalink
Feat: Add tailwind merge util function cn
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Jul 2, 2024
1 parent 47de17a commit 9cadd3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';

export const cn = (...inputs: ClassValue[]) => {
return twMerge(clsx(inputs));
};

0 comments on commit 9cadd3c

Please sign in to comment.