@nhui/cn
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Cn

Util for merging tailwind classes with clsx and tailwind-merge.

Install

$ npm install --save @nhui/cn

Usage

  import cn from "@nhui/cn"
  // or
  import {cn} from "@nhui/cn"

  cn("bg-zinc-50 text-zinc-100", true && "bg-zinc-100", false && "text-zinc-50")
  //=> "text-zinc-100 bg-zinc-100"

Package Sidebar

Install

npm i @nhui/cn

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

143 kB

Total Files

8

Last publish

Collaborators

  • nhui