finshing architecture for project now we have all layers to build profitionl project app,components ,hooks ,lib,services,styel ,types
This commit is contained in:
11
lib/utils.ts
Normal file
11
lib/utils.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
// Minimal class-name merger used by UI components.
|
||||
// Install `clsx` and `tailwind-merge` for production:
|
||||
// npm i clsx tailwind-merge
|
||||
// Then replace the body with:
|
||||
// import { clsx } from "clsx"; import { twMerge } from "tailwind-merge";
|
||||
// export const cn = (...inputs: ClassValue[]) => twMerge(clsx(inputs));
|
||||
|
||||
export function cn(...classes: (string | undefined | null | false)[]): string {
|
||||
return classes.filter(Boolean).join(" ");
|
||||
}
|
||||
Reference in New Issue
Block a user