Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 324 Bytes

readme.md

File metadata and controls

20 lines (14 loc) · 324 Bytes

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"