mirror of
https://github.com/2930134478/AI-CS.git
synced 2026-06-17 17:52:40 +08:00
12 lines
250 B
TypeScript
12 lines
250 B
TypeScript
import { clsx, type ClassValue } from "clsx";
|
|
import { twMerge } from "tailwind-merge";
|
|
|
|
/**
|
|
* 合并 Tailwind CSS 类名的工具函数
|
|
* 用于 Shadcn UI 组件
|
|
*/
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs));
|
|
}
|
|
|