Created
May 28, 2024 18:04
-
-
Save floatrx/dbc079d277491362c584083be6b67846 to your computer and use it in GitHub Desktop.
Tailwind lib utils
This file contains hidden or 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 { type ClassValue, clsx } from 'clsx'; | |
import { twMerge } from 'tailwind-merge'; | |
// Tailwind CSS classnames utility | |
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