Skip to content

nhui98/cn

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published