Oct 15, 2024
Utility function that combines the functionality of classnames and tailwind-merge.
import classnames from "classnames";
import { twMerge } from "tailwind-merge";
export const cn = (...inputs: Parameters<typeof classnames>) =>
twMerge(classnames(...inputs));