Created
October 3, 2023 13:50
-
-
Save jjjjcccjjf/8617cd217e7b56c3ab6e5c95481741e4 to your computer and use it in GitHub Desktop.
cn helper from shadcn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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