Created
January 31, 2024 04:52
-
-
Save rizkiramadhanx/044de34954fdaeb1238f541de775e96f to your computer and use it in GitHub Desktop.
cn utils (Reusable Component)
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 { ClassValue } from "class-variance-authority/types"; | |
import 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