From 9cadd3cae37675b17e5e5fa9a9e7d4b8c7a69be5 Mon Sep 17 00:00:00 2001 From: Choi JunHo Date: Tue, 2 Jul 2024 14:37:46 +0900 Subject: [PATCH] Feat: Add tailwind merge util function cn --- src/utils/style.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/utils/style.ts diff --git a/src/utils/style.ts b/src/utils/style.ts new file mode 100644 index 0000000..ffe21d2 --- /dev/null +++ b/src/utils/style.ts @@ -0,0 +1,6 @@ +import { ClassValue, clsx } from 'clsx'; +import { twMerge } from 'tailwind-merge'; + +export const cn = (...inputs: ClassValue[]) => { + return twMerge(clsx(inputs)); +};