classname-merge
v0.0.2
Published
`cn` function - merge class names using clsx and tailwind-merge
Downloads
11
Maintainers
Readme
classname-merge
Just cn
function ! Merge class names using clsx and tailwind-merge
Qucik start
pnpm add classname-merge
import { cn } from 'classname-merge'
const isRed = true
function app() {
return (
<div className={cn('bg-blue-500', isRed && 'text-red-500')} />
)
}
License
MIT License © 2023-PRESENT leizhenpeng