backend-api/frontend/lib/utils.ts

15 lines
400 B
TypeScript

/*
========================================
File: frontend/lib/utils.ts
========================================
*/
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
/** Utility function to merge Tailwind classes with clsx */
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
// Add other general utility functions here if needed