1
0
This repository has been archived on 2026-03-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Timmy-time-dashboard/mobile-app/lib/utils.ts

16 lines
390 B
TypeScript
Raw Normal View History

import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
/**
* Combines class names using clsx and tailwind-merge.
* This ensures Tailwind classes are properly merged without conflicts.
*
* Usage:
* ```tsx
* cn("px-4 py-2", isActive && "bg-primary", className)
* ```
*/
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}