Skip to content

Repository files navigation

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

About

Just cn function ! Merge class names using clsx and tailwind-merge

Topics

Resources

Contributing

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages