Created
January 13, 2024 10:49
-
-
Save slvssb/2a6a70f1e92743846e637ce9feb961ae to your computer and use it in GitHub Desktop.
Merges tailwind classnames
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