12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
import { type ClassValue, clsx } from 'clsx';
|
|
import { twMerge } from 'tailwind-merge';
|
|
|
|
/**
|
|
* Utility function to merge Tailwind CSS classes
|
|
* Combines clsx and tailwind-merge for optimal class management
|
|
*/
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|