feat: add utility function for class merging with Tailwind and clsx

Introduce `cn` utility function to simplify class name manipulation by combining `clsx` and `tailwind-merge`.
This commit is contained in:
Mathis HERRIOT
2026-01-14 12:12:48 +01:00
parent b53c51b825
commit 5c4badb837

View File

@@ -0,0 +1,6 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}