Skip to content

Commit 2fd28f8

Browse files
committed
chore: cn 유틸 함수 추가
1 parent eb51bd3 commit 2fd28f8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"dependencies": {
1313
"@tanstack/react-query": "^5.59.19",
1414
"autoprefixer": "^10.4.20",
15+
"clsx": "^2.1.1",
1516
"postcss": "^8.4.47",
1617
"react": "^18.3.1",
1718
"react-dom": "^18.3.1",
19+
"tailwind-merge": "^2.5.4",
1820
"tailwindcss": "^3.4.14",
1921
"zustand": "^5.0.1"
2022
},

frontend/src/lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { clsx, type ClassValue } from "clsx";
2+
import { twMerge } from "tailwind-merge";
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs));
6+
}

0 commit comments

Comments
 (0)