Skip to content

Commit 52176bf

Browse files
authored
Fix shadcn utils file in js demo (#20)
1 parent 72079ca commit 52176bf

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,6 @@ docs/_build/
7070

7171
# Pyenv
7272
.python-version
73+
74+
# Avoid ignoring shadcn utils
75+
!demo/harmony-demo/src/lib

demo/harmony-demo/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)