Skip to content

Instantly share code, notes, and snippets.

@ahafidi
Created June 27, 2024 20:42
Show Gist options
  • Save ahafidi/658defae851678471a9902a8396590ab to your computer and use it in GitHub Desktop.
Save ahafidi/658defae851678471a9902a8396590ab to your computer and use it in GitHub Desktop.
// @lib/utils.ts
import { twMerge } from 'tailwind-merge'
import { clsx, ClassValue } from 'clsx'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment