Skip to content

Instantly share code, notes, and snippets.

@slvssb
Created January 13, 2024 10:49
Show Gist options
  • Save slvssb/2a6a70f1e92743846e637ce9feb961ae to your computer and use it in GitHub Desktop.
Save slvssb/2a6a70f1e92743846e637ce9feb961ae to your computer and use it in GitHub Desktop.
Merges tailwind classnames
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
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