UNPKG

@arolariu/components

Version:

A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)!

11 lines (9 loc) 261 B
import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; /** * Helper function that merges tailwindcss * class names in the given input array. */ export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); }