Skip to content

Commit

Permalink
Adding shadcn cn util
Browse files Browse the repository at this point in the history
  • Loading branch information
corbanbrook committed Jan 7, 2025
1 parent 178d6f4 commit 0273fcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/cn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
2 changes: 2 additions & 0 deletions src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { cn } from './cn'

export * from './address'
export * from './assets'
export * from './filter'
Expand Down

0 comments on commit 0273fcb

Please sign in to comment.