Skip to content

Instantly share code, notes, and snippets.

@kazi331
Created September 2, 2025 13:56
Show Gist options
  • Select an option

  • Save kazi331/9a9d9a15fdc305a853c89a64cdd1f75a to your computer and use it in GitHub Desktop.

Select an option

Save kazi331/9a9d9a15fdc305a853c89a64cdd1f75a to your computer and use it in GitHub Desktop.
most used cn function file in tailwindcss projects
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