Tailwind cn() class merger
TypeScriptPublic
import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'
// Merge conditional class names and resolve Tailwind conflicts.
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}Comments(0)
No comments yet. Start the conversation.