0.0.2 • Published 12 months ago

classname-merge v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

classname-merge

npm version npm downloads bundle JSDocs License

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

0.0.2

12 months ago

0.0.1

12 months ago