@evanwinter/cn
v1.0.2
Published
Utility function for merging Tailwind class names as popularized by `@shadcn/ui`.
Downloads
3
Readme
@evanwinter/cn
Utility function for merging Tailwind class names as popularized by @shadcn/ui.
Installation
npm i @evanwinter/cn
Usage
import { cn } from '@evanwinter/cn';
export function Button({ className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement>) {
return (
<button {...props} className={cn("bg-black text-white rounded", props.className)}>
)
}