Skip to content

Instantly share code, notes, and snippets.

@jjjjcccjjf
Created October 3, 2023 13:50
Show Gist options
  • Save jjjjcccjjf/8617cd217e7b56c3ab6e5c95481741e4 to your computer and use it in GitHub Desktop.
Save jjjjcccjjf/8617cd217e7b56c3ab6e5c95481741e4 to your computer and use it in GitHub Desktop.
cn helper from shadcn
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