Skip to content

Instantly share code, notes, and snippets.

@yinkakun
Created October 19, 2023 08:50
Show Gist options
  • Save yinkakun/7668001bcfaa86e8b68b56c50ea1ece4 to your computer and use it in GitHub Desktop.
Save yinkakun/7668001bcfaa86e8b68b56c50ea1ece4 to your computer and use it in GitHub Desktop.
import { ClassValue, clsx } 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