@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Radix UI. TypeScript-first, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
13 lines (11 loc) • 369 B
text/typescript
import {clsx, type ClassValue} from "clsx";
import {twMerge} from "tailwind-merge";
/**
* Helper function that merges tailwindcss
* class names in the given input array.
* @param inputs Array of class names
* @returns Merged class names
*/
export function cn(...inputs: ReadonlyArray<ClassValue>): Readonly<string> {
return twMerge(clsx(inputs));
}