add all component + add switch componnent + add ui shadcn

This commit is contained in:
hamid zarghami
2025-11-18 15:04:36 +03:30
parent 8070a3f837
commit 9b06c7dfc5
12 changed files with 393 additions and 4 deletions
+8
View File
@@ -1,6 +1,14 @@
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
import type { IGeneralError } from "./types";
/**
* Merges class names with tailwind-merge and clsx
*/
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
/**
* Concatenates truthy classes into a space-separated string.
*